S = input()

a = []
b = []
for s in S:
    if s.isdigit():
        b.append(s)
    else:
        a.append(s)

a.reverse()
print("".join(a+b))