import java.util.Scanner;

public class Main {
	
	static Scanner sc =  new java.util.Scanner(System.in);

	public static void main(String[] args) {
		
		String str = sc.next();
		
		String[] array = str.split("");
		
		int n = array.length;
		
		String str2 = "" ;
		
		for ( int x = n - 1 ; x >= 0 ; x--){
			
			str2 = str2 + array[x] ;
		}
		System.out.println( str2 ) ;
	}

} import java.util.Scanner; Scanner java.util public class Main {
	
	static Scanner sc =  new java.util.Scanner(System.in);

	public static void main(String[] args) {
		
		String str = sc.next();
		
		String[] array = str.split("");
		
		int n = array.length;
		
		String str2 = "" ;
		
		for ( int x = n - 1 ; x >= 0 ; x--){
			
			str2 = str2 + array[x] ;
		}
		System.out.println( str2 ) ;
	}

} Main static Scanner sc =  new java.util.Scanner(System.in); sc new java.util.Scanner(System.in) public static void main(String[] args) {
		
		String str = sc.next();
		
		String[] array = str.split("");
		
		int n = array.length;
		
		String str2 = "" ;
		
		for ( int x = n - 1 ; x >= 0 ; x--){
			
			str2 = str2 + array[x] ;
		}
		System.out.println( str2 ) ;
	} main {
		
		String str = sc.next();
		
		String[] array = str.split("");
		
		int n = array.length;
		
		String str2 = "" ;
		
		for ( int x = n - 1 ; x >= 0 ; x--){
			
			str2 = str2 + array[x] ;
		}
		System.out.println( str2 ) ;
	} String str = sc.next(); str sc.next() sc.next sc String[] array = str.split(""); array str.split("") str.split str "" int n = array.length; n array.length array array.length String str2 = "" ; str2 "" for ( int x = n - 1 ; x >= 0 ; x--){
			
			str2 = str2 + array[x] ;
		} int x = n - 1 ; int x = n - 1 ; x n - 1 n 1 x >= 0 x 0 x-- x-- x {
			
			str2 = str2 + array[x] ;
		} {
			
			str2 = str2 + array[x] ;
		} str2 = str2 + array[x] str2 str2 + array[x] str2 array[x] array x System.out.println( str2 ) System.out.println System.out System System.out str2 String[] args args public class Main {
	
	static Scanner sc =  new java.util.Scanner(System.in);

	public static void main(String[] args) {
		
		String str = sc.next();
		
		String[] array = str.split("");
		
		int n = array.length;
		
		String str2 = "" ;
		
		for ( int x = n - 1 ; x >= 0 ; x--){
			
			str2 = str2 + array[x] ;
		}
		System.out.println( str2 ) ;
	}

} public class Main {
	
	static Scanner sc =  new java.util.Scanner(System.in);

	public static void main(String[] args) {
		
		String str = sc.next();
		
		String[] array = str.split("");
		
		int n = array.length;
		
		String str2 = "" ;
		
		for ( int x = n - 1 ; x >= 0 ; x--){
			
			str2 = str2 + array[x] ;
		}
		System.out.println( str2 ) ;
	}

} Main
import java.util.Scanner;

public class Main {
	
	static Scanner sc =  new java.util.Scanner(System.in);

	public static void main(String[] args) {
		
		String str = sc.next();
		
		String[] array = str.split("");
		
		int n = array.length;
		
		String str2 = "" ;
		
		for ( int x = n - 1 ; x >= 0 ; x--){
			
			str2 = str2 + array[x] ;
		}
		System.out.println( str2 ) ;
	}

}