strlist = list(input())

strlist.reverse()
print(''.join(strlist))