import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

class Main {
  public static void main(String[] args) throws IOException {
    BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
    String[] str = br.readLine().split("");
    for (int i = str.length-1; i >=0; i--) {
      System.out.print(str[i]);
    }
    System.out.println();
  }
} import java.io.BufferedReader; BufferedReader java.io import java.io.IOException; IOException java.io import java.io.InputStreamReader; InputStreamReader java.io class Main {
  public static void main(String[] args) throws IOException {
    BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
    String[] str = br.readLine().split("");
    for (int i = str.length-1; i >=0; i--) {
      System.out.print(str[i]);
    }
    System.out.println();
  }
} Main public static void main(String[] args) throws IOException {
    BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
    String[] str = br.readLine().split("");
    for (int i = str.length-1; i >=0; i--) {
      System.out.print(str[i]);
    }
    System.out.println();
  } main {
    BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
    String[] str = br.readLine().split("");
    for (int i = str.length-1; i >=0; i--) {
      System.out.print(str[i]);
    }
    System.out.println();
  } BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) String[] str = br.readLine().split(""); str br.readLine().split("") br.readLine().split br.readLine() br.readLine br "" for (int i = str.length-1; i >=0; i--) {
      System.out.print(str[i]);
    } int i = str.length-1; int i = str.length-1; i str.length-1 str.length str str.length 1 i >=0 i 0 i-- i-- i {
      System.out.print(str[i]);
    } {
      System.out.print(str[i]);
    } System.out.print(str[i]) System.out.print System.out System System.out str[i] str i System.out.println() System.out.println System.out System System.out String[] args args
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

class Main {
  public static void main(String[] args) throws IOException {
    BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
    String[] str = br.readLine().split("");
    for (int i = str.length-1; i >=0; i--) {
      System.out.print(str[i]);
    }
    System.out.println();
  }
}