import java.util.Scanner; public class No9005 { public static void main(String[] args) { Scanner sc=new Scanner(System.in); String ret=""; char[] n=sc.next().toCharArray(); for(int i=n.length-1;i>=0;i--) ret+=n[i]; System.out.println(ret); } }