#!/usr/bin/env python #coding:UTF-8 S = raw_input() SL = len(S) - 1 S2 = [] while SL >= 0: S2.append(S[SL]) SL = SL - 1 print ''.join(S2)