1num = input()
2num = num[::-1]
3Final_string = ''
4number = ''
5for i in range(len(num)):
6 number = number + num[i]
7 if (int(number) >= 65 and int(number) <= 90) or (int(number) >= 97 and int(number) <= 122) or (int(number) == 32):
8 character = chr(int(number))
9 Final_string+=character
10 number = ''
11print(Final_string)