import java.io.*;
public class Main {
   public static void main(String[] args) throws IOException{
	   BufferedReader buf = new BufferedReader(new InputStreamReader(System.in));
	   String str;
	   StringBuffer s = new StringBuffer("");
	   str = buf.readLine();
	   s.append(str);
	   s.reverse();
	   System.out.println(s);
   }
} import java.io.*; io.* java public class Main {
   public static void main(String[] args) throws IOException{
	   BufferedReader buf = new BufferedReader(new InputStreamReader(System.in));
	   String str;
	   StringBuffer s = new StringBuffer("");
	   str = buf.readLine();
	   s.append(str);
	   s.reverse();
	   System.out.println(s);
   }
} Main public static void main(String[] args) throws IOException{
	   BufferedReader buf = new BufferedReader(new InputStreamReader(System.in));
	   String str;
	   StringBuffer s = new StringBuffer("");
	   str = buf.readLine();
	   s.append(str);
	   s.reverse();
	   System.out.println(s);
   } main {
	   BufferedReader buf = new BufferedReader(new InputStreamReader(System.in));
	   String str;
	   StringBuffer s = new StringBuffer("");
	   str = buf.readLine();
	   s.append(str);
	   s.reverse();
	   System.out.println(s);
   } BufferedReader buf = new BufferedReader(new InputStreamReader(System.in)); buf new BufferedReader(new InputStreamReader(System.in)) String str; str StringBuffer s = new StringBuffer(""); s new StringBuffer("") str = buf.readLine() str buf.readLine() buf.readLine buf s.append(str) s.append s str s.reverse() s.reverse s System.out.println(s) System.out.println System.out System System.out s String[] args args public class Main {
   public static void main(String[] args) throws IOException{
	   BufferedReader buf = new BufferedReader(new InputStreamReader(System.in));
	   String str;
	   StringBuffer s = new StringBuffer("");
	   str = buf.readLine();
	   s.append(str);
	   s.reverse();
	   System.out.println(s);
   }
} public class Main {
   public static void main(String[] args) throws IOException{
	   BufferedReader buf = new BufferedReader(new InputStreamReader(System.in));
	   String str;
	   StringBuffer s = new StringBuffer("");
	   str = buf.readLine();
	   s.append(str);
	   s.reverse();
	   System.out.println(s);
   }
} Main
import java.io.*;
public class Main {
   public static void main(String[] args) throws IOException{
	   BufferedReader buf = new BufferedReader(new InputStreamReader(System.in));
	   String str;
	   StringBuffer s = new StringBuffer("");
	   str = buf.readLine();
	   s.append(str);
	   s.reverse();
	   System.out.println(s);
   }
}