x = list(input())
x.reverse()
print(''.join(x))