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