import java.util.Scanner;

class Main {
  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    String line = sc.nextLine();
    line = new StringBuilder(line).reverse().toString();
    System.out.println(line);
  }
} import java.util.Scanner; Scanner java.util class Main {
  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    String line = sc.nextLine();
    line = new StringBuilder(line).reverse().toString();
    System.out.println(line);
  }
} Main public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    String line = sc.nextLine();
    line = new StringBuilder(line).reverse().toString();
    System.out.println(line);
  } main {
    Scanner sc = new Scanner(System.in);
    String line = sc.nextLine();
    line = new StringBuilder(line).reverse().toString();
    System.out.println(line);
  } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String line = sc.nextLine(); line sc.nextLine() sc.nextLine sc line = new StringBuilder(line).reverse().toString() line new StringBuilder(line).reverse().toString() new StringBuilder(line).reverse().toString new StringBuilder(line).reverse() new StringBuilder(line).reverse new StringBuilder(line) System.out.println(line) System.out.println System.out System System.out line String[] args args
import java.util.Scanner;

class Main {
  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    String line = sc.nextLine();
    line = new StringBuilder(line).reverse().toString();
    System.out.println(line);
  }
}