import java.util.Scanner;


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


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