import java.util.Scanner;

class Main{
  public static void main(String[] args){
    String str = new Scanner(System.in).next();
    StringBuffer stb = new StringBuffer(str);
    System.out.println(stb.reverse().toString());
  }
} import java.util.Scanner; Scanner java.util class Main{
  public static void main(String[] args){
    String str = new Scanner(System.in).next();
    StringBuffer stb = new StringBuffer(str);
    System.out.println(stb.reverse().toString());
  }
} Main public static void main(String[] args){
    String str = new Scanner(System.in).next();
    StringBuffer stb = new StringBuffer(str);
    System.out.println(stb.reverse().toString());
  } main {
    String str = new Scanner(System.in).next();
    StringBuffer stb = new StringBuffer(str);
    System.out.println(stb.reverse().toString());
  } String str = new Scanner(System.in).next(); str new Scanner(System.in).next() new Scanner(System.in).next new Scanner(System.in) StringBuffer stb = new StringBuffer(str); stb new StringBuffer(str) System.out.println(stb.reverse().toString()) System.out.println System.out System System.out stb.reverse().toString() stb.reverse().toString stb.reverse() stb.reverse stb String[] args args
import java.util.Scanner;

class Main{
  public static void main(String[] args){
    String str = new Scanner(System.in).next();
    StringBuffer stb = new StringBuffer(str);
    System.out.println(stb.reverse().toString());
  }
}