s=input() ans="" for i in range(len(s)): ans+=s[-1-i] print(ans)