import java.util.Scanner;

public class Main {
	public static void main(String[] a){
		Scanner scn = new Scanner(System.in);
		String str = scn.nextLine();
		int len = str.length();
		for(int i = 0;i < len;i++){
		System.out.print(str.charAt(len - 1 - i));
		}
		System.out.println("");
	}
} import java.util.Scanner; Scanner java.util public class Main {
	public static void main(String[] a){
		Scanner scn = new Scanner(System.in);
		String str = scn.nextLine();
		int len = str.length();
		for(int i = 0;i < len;i++){
		System.out.print(str.charAt(len - 1 - i));
		}
		System.out.println("");
	}
} Main public static void main(String[] a){
		Scanner scn = new Scanner(System.in);
		String str = scn.nextLine();
		int len = str.length();
		for(int i = 0;i < len;i++){
		System.out.print(str.charAt(len - 1 - i));
		}
		System.out.println("");
	} main {
		Scanner scn = new Scanner(System.in);
		String str = scn.nextLine();
		int len = str.length();
		for(int i = 0;i < len;i++){
		System.out.print(str.charAt(len - 1 - i));
		}
		System.out.println("");
	} Scanner scn = new Scanner(System.in); scn new Scanner(System.in) String str = scn.nextLine(); str scn.nextLine() scn.nextLine scn int len = str.length(); len str.length() str.length str for(int i = 0;i < len;i++){
		System.out.print(str.charAt(len - 1 - i));
		} int i = 0; int i = 0; i 0 i < len i len i++ i++ i {
		System.out.print(str.charAt(len - 1 - i));
		} {
		System.out.print(str.charAt(len - 1 - i));
		} System.out.print(str.charAt(len - 1 - i)) System.out.print System.out System System.out str.charAt(len - 1 - i) str.charAt str len - 1 - i len - 1 - i len 1 i System.out.println("") System.out.println System.out System System.out "" String[] a a public class Main {
	public static void main(String[] a){
		Scanner scn = new Scanner(System.in);
		String str = scn.nextLine();
		int len = str.length();
		for(int i = 0;i < len;i++){
		System.out.print(str.charAt(len - 1 - i));
		}
		System.out.println("");
	}
} public class Main {
	public static void main(String[] a){
		Scanner scn = new Scanner(System.in);
		String str = scn.nextLine();
		int len = str.length();
		for(int i = 0;i < len;i++){
		System.out.print(str.charAt(len - 1 - i));
		}
		System.out.println("");
	}
} Main
import java.util.Scanner;

public class Main {
	public static void main(String[] a){
		Scanner scn = new Scanner(System.in);
		String str = scn.nextLine();
		int len = str.length();
		for(int i = 0;i < len;i++){
		System.out.print(str.charAt(len - 1 - i));
		}
		System.out.println("");
	}
}