import java.util.*;


public class Main {
	public static void main(String[] args){
	
		Scanner sc = new Scanner(System. in);
		String line = sc.nextLine();
		char[] str = line.toCharArray();
		int n = line.length();
				
		char[] rts = new char[20];
		
		for(int i=0;i<n;i++){
			rts[i]=str[n-i-1];
		}
		
		for(int i=0;i<n;i++){
		System.out.print(rts[i]);
		}
		System.out.println();
	}
}

 import java.util.*; util.* java public class Main {
	public static void main(String[] args){
	
		Scanner sc = new Scanner(System. in);
		String line = sc.nextLine();
		char[] str = line.toCharArray();
		int n = line.length();
				
		char[] rts = new char[20];
		
		for(int i=0;i<n;i++){
			rts[i]=str[n-i-1];
		}
		
		for(int i=0;i<n;i++){
		System.out.print(rts[i]);
		}
		System.out.println();
	}
} Main public static void main(String[] args){
	
		Scanner sc = new Scanner(System. in);
		String line = sc.nextLine();
		char[] str = line.toCharArray();
		int n = line.length();
				
		char[] rts = new char[20];
		
		for(int i=0;i<n;i++){
			rts[i]=str[n-i-1];
		}
		
		for(int i=0;i<n;i++){
		System.out.print(rts[i]);
		}
		System.out.println();
	} main {
	
		Scanner sc = new Scanner(System. in);
		String line = sc.nextLine();
		char[] str = line.toCharArray();
		int n = line.length();
				
		char[] rts = new char[20];
		
		for(int i=0;i<n;i++){
			rts[i]=str[n-i-1];
		}
		
		for(int i=0;i<n;i++){
		System.out.print(rts[i]);
		}
		System.out.println();
	} Scanner sc = new Scanner(System. in); sc new Scanner(System. in) String line = sc.nextLine(); line sc.nextLine() sc.nextLine sc char[] str = line.toCharArray(); str line.toCharArray() line.toCharArray line int n = line.length(); n line.length() line.length line char[] rts = new char[20]; rts new char[20] 20 for(int i=0;i<n;i++){
			rts[i]=str[n-i-1];
		} int i=0; int i=0; i 0 i<n i n i++ i++ i {
			rts[i]=str[n-i-1];
		} {
			rts[i]=str[n-i-1];
		} rts[i]=str[n-i-1] rts[i] rts i str[n-i-1] str n-i-1 n-i-1 n i 1 for(int i=0;i<n;i++){
		System.out.print(rts[i]);
		} int i=0; int i=0; i 0 i<n i n i++ i++ i {
		System.out.print(rts[i]);
		} {
		System.out.print(rts[i]);
		} System.out.print(rts[i]) System.out.print System.out System System.out rts[i] rts i System.out.println() System.out.println System.out System System.out String[] args args public class Main {
	public static void main(String[] args){
	
		Scanner sc = new Scanner(System. in);
		String line = sc.nextLine();
		char[] str = line.toCharArray();
		int n = line.length();
				
		char[] rts = new char[20];
		
		for(int i=0;i<n;i++){
			rts[i]=str[n-i-1];
		}
		
		for(int i=0;i<n;i++){
		System.out.print(rts[i]);
		}
		System.out.println();
	}
} public class Main {
	public static void main(String[] args){
	
		Scanner sc = new Scanner(System. in);
		String line = sc.nextLine();
		char[] str = line.toCharArray();
		int n = line.length();
				
		char[] rts = new char[20];
		
		for(int i=0;i<n;i++){
			rts[i]=str[n-i-1];
		}
		
		for(int i=0;i<n;i++){
		System.out.print(rts[i]);
		}
		System.out.println();
	}
} Main
import java.util.*;


public class Main {
	public static void main(String[] args){
	
		Scanner sc = new Scanner(System. in);
		String line = sc.nextLine();
		char[] str = line.toCharArray();
		int n = line.length();
				
		char[] rts = new char[20];
		
		for(int i=0;i<n;i++){
			rts[i]=str[n-i-1];
		}
		
		for(int i=0;i<n;i++){
		System.out.print(rts[i]);
		}
		System.out.println();
	}
}


