abcde
edcba
def reverse_str(s): if not s: return '' return s[-1] + reverse_str(s[:-1]) print(reverse_str(input().strip()))