import java.util.Scanner;
public class Main {

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

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

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

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