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