# -*- coding: utf-8 -*- s = raw_input() print "".join(list(s).reverse())