import java.util.Scanner;

public class Main {
	public static void main(String arges[]){
		String p;
		Scanner sc = new Scanner (System.in);
		p = sc.next();
		int len = p.length();
		for(int i=len-1; i>=0;i--){
				System.out.print(p.charAt(i));
		}
		System.out.println();
		
	}
} import java.util.Scanner; Scanner java.util public class Main {
	public static void main(String arges[]){
		String p;
		Scanner sc = new Scanner (System.in);
		p = sc.next();
		int len = p.length();
		for(int i=len-1; i>=0;i--){
				System.out.print(p.charAt(i));
		}
		System.out.println();
		
	}
} Main public static void main(String arges[]){
		String p;
		Scanner sc = new Scanner (System.in);
		p = sc.next();
		int len = p.length();
		for(int i=len-1; i>=0;i--){
				System.out.print(p.charAt(i));
		}
		System.out.println();
		
	} main {
		String p;
		Scanner sc = new Scanner (System.in);
		p = sc.next();
		int len = p.length();
		for(int i=len-1; i>=0;i--){
				System.out.print(p.charAt(i));
		}
		System.out.println();
		
	} String p; p Scanner sc = new Scanner (System.in); sc new Scanner (System.in) p = sc.next() p sc.next() sc.next sc int len = p.length(); len p.length() p.length p for(int i=len-1; i>=0;i--){
				System.out.print(p.charAt(i));
		} int i=len-1; int i=len-1; i len-1 len 1 i>=0 i 0 i-- i-- i {
				System.out.print(p.charAt(i));
		} {
				System.out.print(p.charAt(i));
		} System.out.print(p.charAt(i)) System.out.print System.out System System.out p.charAt(i) p.charAt p i System.out.println() System.out.println System.out System System.out String arges[] arges public class Main {
	public static void main(String arges[]){
		String p;
		Scanner sc = new Scanner (System.in);
		p = sc.next();
		int len = p.length();
		for(int i=len-1; i>=0;i--){
				System.out.print(p.charAt(i));
		}
		System.out.println();
		
	}
} public class Main {
	public static void main(String arges[]){
		String p;
		Scanner sc = new Scanner (System.in);
		p = sc.next();
		int len = p.length();
		for(int i=len-1; i>=0;i--){
				System.out.print(p.charAt(i));
		}
		System.out.println();
		
	}
} Main
import java.util.Scanner;

public class Main {
	public static void main(String arges[]){
		String p;
		Scanner sc = new Scanner (System.in);
		p = sc.next();
		int len = p.length();
		for(int i=len-1; i>=0;i--){
				System.out.print(p.charAt(i));
		}
		System.out.println();
		
	}
}