def MoveHyphen(str):
    cnt=0
    res=''
    for i in str:
        if(i == '-'):
            cnt+=1
        else:
            res+=i
    res = '-'*cnt + res
    return res

str=input()
ans=MoveHyphen(str)
print(ans)

Embed on website

To embed this program on your website, copy the following code and paste it into your website's HTML: