#coding:utf-8 print reversed(raw_input())