import java.io.*; public class Main{ public static void main(String []args) throws IOException { String s = new BufferedReader(new InputStreamReader(System.in)).readLine(); for (int i=s.length()-1;i>=0;i--){ System.out.print(s.charAt(i)); } System.out.println(); } }