import java.io.*;
import java.lang.*;


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


public class Main {
	public static void main(String[] args)  throws IOException
	{
	    BufferedReader buf = new BufferedReader(new InputStreamReader(System.in));
	    StringBuffer s = new StringBuffer(buf.readLine());
	    String sun = s.reverse().toString();
	    System.out.println(sun);
	}
		
}