import java.util.Scanner;
class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    while(sc.hasNext()) {
      String str = sc.nextLine();
      for (int i = 0; i < str.length(); i++) {
        System.out.print(str.charAt(str.length()-i-1));
      }
      System.out.println("");
    }
  }
} import java.util.Scanner; Scanner java.util class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    while(sc.hasNext()) {
      String str = sc.nextLine();
      for (int i = 0; i < str.length(); i++) {
        System.out.print(str.charAt(str.length()-i-1));
      }
      System.out.println("");
    }
  }
} Main public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    while(sc.hasNext()) {
      String str = sc.nextLine();
      for (int i = 0; i < str.length(); i++) {
        System.out.print(str.charAt(str.length()-i-1));
      }
      System.out.println("");
    }
  } main {
    Scanner sc = new Scanner(System.in);
    while(sc.hasNext()) {
      String str = sc.nextLine();
      for (int i = 0; i < str.length(); i++) {
        System.out.print(str.charAt(str.length()-i-1));
      }
      System.out.println("");
    }
  } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) while(sc.hasNext()) {
      String str = sc.nextLine();
      for (int i = 0; i < str.length(); i++) {
        System.out.print(str.charAt(str.length()-i-1));
      }
      System.out.println("");
    } sc.hasNext() sc.hasNext sc {
      String str = sc.nextLine();
      for (int i = 0; i < str.length(); i++) {
        System.out.print(str.charAt(str.length()-i-1));
      }
      System.out.println("");
    } String str = sc.nextLine(); str sc.nextLine() sc.nextLine sc for (int i = 0; i < str.length(); i++) {
        System.out.print(str.charAt(str.length()-i-1));
      } int i = 0; int i = 0; i 0 i < str.length() i str.length() str.length str i++ i++ i {
        System.out.print(str.charAt(str.length()-i-1));
      } {
        System.out.print(str.charAt(str.length()-i-1));
      } System.out.print(str.charAt(str.length()-i-1)) System.out.print System.out System System.out str.charAt(str.length()-i-1) str.charAt str str.length()-i-1 str.length()-i-1 str.length() str.length str i 1 System.out.println("") System.out.println System.out System System.out "" String[] args args
import java.util.Scanner;
class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    while(sc.hasNext()) {
      String str = sc.nextLine();
      for (int i = 0; i < str.length(); i++) {
        System.out.print(str.charAt(str.length()-i-1));
      }
      System.out.println("");
    }
  }
}