import java.util.Scanner;

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

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