import java.util.Scanner;


public class Main {
	public static void main(String args[])
	   {
	      String x,y;
	      x="";
	      y="";
	      Scanner in = new Scanner(System.in);
	      x = in.nextLine();
	 
	      int l = x.length();
	 
	      for ( int i = l - 1 ; i >= 0 ; i-- )
	         y = y + x.charAt(i);
	 
	      System.out.println(y);
	   }} import java.util.Scanner; Scanner java.util public class Main {
	public static void main(String args[])
	   {
	      String x,y;
	      x="";
	      y="";
	      Scanner in = new Scanner(System.in);
	      x = in.nextLine();
	 
	      int l = x.length();
	 
	      for ( int i = l - 1 ; i >= 0 ; i-- )
	         y = y + x.charAt(i);
	 
	      System.out.println(y);
	   }} Main public static void main(String args[])
	   {
	      String x,y;
	      x="";
	      y="";
	      Scanner in = new Scanner(System.in);
	      x = in.nextLine();
	 
	      int l = x.length();
	 
	      for ( int i = l - 1 ; i >= 0 ; i-- )
	         y = y + x.charAt(i);
	 
	      System.out.println(y);
	   } main {
	      String x,y;
	      x="";
	      y="";
	      Scanner in = new Scanner(System.in);
	      x = in.nextLine();
	 
	      int l = x.length();
	 
	      for ( int i = l - 1 ; i >= 0 ; i-- )
	         y = y + x.charAt(i);
	 
	      System.out.println(y);
	   } String x x y; y x="" x "" y="" y "" Scanner in = new Scanner(System.in); in new Scanner(System.in) x = in.nextLine() x in.nextLine() in.nextLine in int l = x.length(); l x.length() x.length x for ( int i = l - 1 ; i >= 0 ; i-- )
	         y = y + x.charAt(i); int i = l - 1 ; int i = l - 1 ; i l - 1 l 1 i >= 0 i 0 i-- i-- i y = y + x.charAt(i); y = y + x.charAt(i) y y + x.charAt(i) y x.charAt(i) x.charAt x i System.out.println(y) System.out.println System.out System System.out y String args[] args public class Main {
	public static void main(String args[])
	   {
	      String x,y;
	      x="";
	      y="";
	      Scanner in = new Scanner(System.in);
	      x = in.nextLine();
	 
	      int l = x.length();
	 
	      for ( int i = l - 1 ; i >= 0 ; i-- )
	         y = y + x.charAt(i);
	 
	      System.out.println(y);
	   }} public class Main {
	public static void main(String args[])
	   {
	      String x,y;
	      x="";
	      y="";
	      Scanner in = new Scanner(System.in);
	      x = in.nextLine();
	 
	      int l = x.length();
	 
	      for ( int i = l - 1 ; i >= 0 ; i-- )
	         y = y + x.charAt(i);
	 
	      System.out.println(y);
	   }} Main
import java.util.Scanner;


public class Main {
	public static void main(String args[])
	   {
	      String x,y;
	      x="";
	      y="";
	      Scanner in = new Scanner(System.in);
	      x = in.nextLine();
	 
	      int l = x.length();
	 
	      for ( int i = l - 1 ; i >= 0 ; i-- )
	         y = y + x.charAt(i);
	 
	      System.out.println(y);
	   }}