# coding: utf-8 A = input() B = "" for moji in reversed(A): B = B + moji print(B)