import sys unput=sys.stdin.readline org_str = input() new_str = ''.join(list(reversed(org_str))) print(new_str)