num = [i for i in input()]
num.reverse()
num = ''.join(num)
print(num)