Write a program which reverses a given string str.



Input

str (the size of str ≤ 20) is given in a line.

Output

Print the reversed str in a line.

Example

Input

w32nimda


Output

admin23w
str = []
a = raw_input()
count = len(a)
str = list(a)
str_reverse = []
for i in range(0,count):
        str_reverse.append(str[count - i -1])
print ''.join(str_reverse)