import java.util.*;
public class Main{
  private static String strs;
  static char []a;
public static void main(String [] args){
    Scanner sc = new Scanner(System.in);
    strs=sc.next();
    char[]a = strs.toCharArray();
    for (int i=a.length-1;i>=0;i--){
    	System.out.print(a[i]);
    }
    System.out.println();
  }
} import java.util.*; util.* java public class Main{
  private static String strs;
  static char []a;
public static void main(String [] args){
    Scanner sc = new Scanner(System.in);
    strs=sc.next();
    char[]a = strs.toCharArray();
    for (int i=a.length-1;i>=0;i--){
    	System.out.print(a[i]);
    }
    System.out.println();
  }
} Main private static String strs; strs static char []a; a public static void main(String [] args){
    Scanner sc = new Scanner(System.in);
    strs=sc.next();
    char[]a = strs.toCharArray();
    for (int i=a.length-1;i>=0;i--){
    	System.out.print(a[i]);
    }
    System.out.println();
  } main {
    Scanner sc = new Scanner(System.in);
    strs=sc.next();
    char[]a = strs.toCharArray();
    for (int i=a.length-1;i>=0;i--){
    	System.out.print(a[i]);
    }
    System.out.println();
  } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) strs=sc.next() strs sc.next() sc.next sc char[]a = strs.toCharArray(); a strs.toCharArray() strs.toCharArray strs for (int i=a.length-1;i>=0;i--){
    	System.out.print(a[i]);
    } int i=a.length-1; int i=a.length-1; i a.length-1 a.length a a.length 1 i>=0 i 0 i-- i-- i {
    	System.out.print(a[i]);
    } {
    	System.out.print(a[i]);
    } System.out.print(a[i]) System.out.print System.out System System.out a[i] a i System.out.println() System.out.println System.out System System.out String [] args args public class Main{
  private static String strs;
  static char []a;
public static void main(String [] args){
    Scanner sc = new Scanner(System.in);
    strs=sc.next();
    char[]a = strs.toCharArray();
    for (int i=a.length-1;i>=0;i--){
    	System.out.print(a[i]);
    }
    System.out.println();
  }
} public class Main{
  private static String strs;
  static char []a;
public static void main(String [] args){
    Scanner sc = new Scanner(System.in);
    strs=sc.next();
    char[]a = strs.toCharArray();
    for (int i=a.length-1;i>=0;i--){
    	System.out.print(a[i]);
    }
    System.out.println();
  }
} Main
import java.util.*;
public class Main{
  private static String strs;
  static char []a;
public static void main(String [] args){
    Scanner sc = new Scanner(System.in);
    strs=sc.next();
    char[]a = strs.toCharArray();
    for (int i=a.length-1;i>=0;i--){
    	System.out.print(a[i]);
    }
    System.out.println();
  }
}