#!/usr/bin/env python #coding:UTF-8 S = raw_input() sl = len(S) - 1 S2 = [] * len(S) for I in range(0,sl): S2[I] = S[sl - I] print "".join(S2)