import java.util.*;
public class Main {
	public static void main(String[] args){
		Scanner input=new Scanner(System.in);
		String str=input.next();
		char[] reverse=str.toCharArray();
		for(int i=reverse.length-1;i>=0;i--){
			System.out.print(reverse[i]);
		}
		System.out.println();
		
	}

} import java.util.*; util.* java public class Main {
	public static void main(String[] args){
		Scanner input=new Scanner(System.in);
		String str=input.next();
		char[] reverse=str.toCharArray();
		for(int i=reverse.length-1;i>=0;i--){
			System.out.print(reverse[i]);
		}
		System.out.println();
		
	}

} Main public static void main(String[] args){
		Scanner input=new Scanner(System.in);
		String str=input.next();
		char[] reverse=str.toCharArray();
		for(int i=reverse.length-1;i>=0;i--){
			System.out.print(reverse[i]);
		}
		System.out.println();
		
	} main {
		Scanner input=new Scanner(System.in);
		String str=input.next();
		char[] reverse=str.toCharArray();
		for(int i=reverse.length-1;i>=0;i--){
			System.out.print(reverse[i]);
		}
		System.out.println();
		
	} Scanner input=new Scanner(System.in); input new Scanner(System.in) String str=input.next(); str input.next() input.next input char[] reverse=str.toCharArray(); reverse str.toCharArray() str.toCharArray str for(int i=reverse.length-1;i>=0;i--){
			System.out.print(reverse[i]);
		} int i=reverse.length-1; int i=reverse.length-1; i reverse.length-1 reverse.length reverse reverse.length 1 i>=0 i 0 i-- i-- i {
			System.out.print(reverse[i]);
		} {
			System.out.print(reverse[i]);
		} System.out.print(reverse[i]) System.out.print System.out System System.out reverse[i] reverse 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 input=new Scanner(System.in);
		String str=input.next();
		char[] reverse=str.toCharArray();
		for(int i=reverse.length-1;i>=0;i--){
			System.out.print(reverse[i]);
		}
		System.out.println();
		
	}

} public class Main {
	public static void main(String[] args){
		Scanner input=new Scanner(System.in);
		String str=input.next();
		char[] reverse=str.toCharArray();
		for(int i=reverse.length-1;i>=0;i--){
			System.out.print(reverse[i]);
		}
		System.out.println();
		
	}

} Main
import java.util.*;
public class Main {
	public static void main(String[] args){
		Scanner input=new Scanner(System.in);
		String str=input.next();
		char[] reverse=str.toCharArray();
		for(int i=reverse.length-1;i>=0;i--){
			System.out.print(reverse[i]);
		}
		System.out.println();
		
	}

}