S = input()
now = 0
while S[now] not in "0123456789":
    now += 1

S, T = S[:now], S[now:]
print(S[::-1] + T)