'''
= =|||
'''
print(input()[::-1])