import java.util.Scanner;

public class Main {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		Scanner scanner = new Scanner(System.in);
		String[] target = scanner.nextLine().split("");
		for (int i = target.length - 1; i > 0; i--) {
			System.out.print(target[i]);
		}
		System.out.println(target[0]);
	}
} import java.util.Scanner; Scanner java.util public class Main {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		Scanner scanner = new Scanner(System.in);
		String[] target = scanner.nextLine().split("");
		for (int i = target.length - 1; i > 0; i--) {
			System.out.print(target[i]);
		}
		System.out.println(target[0]);
	}
} Main /**
	 * @param args
	 */
	public static void main(String[] args) {
		Scanner scanner = new Scanner(System.in);
		String[] target = scanner.nextLine().split("");
		for (int i = target.length - 1; i > 0; i--) {
			System.out.print(target[i]);
		}
		System.out.println(target[0]);
	} main {
		Scanner scanner = new Scanner(System.in);
		String[] target = scanner.nextLine().split("");
		for (int i = target.length - 1; i > 0; i--) {
			System.out.print(target[i]);
		}
		System.out.println(target[0]);
	} Scanner scanner = new Scanner(System.in); scanner new Scanner(System.in) String[] target = scanner.nextLine().split(""); target scanner.nextLine().split("") scanner.nextLine().split scanner.nextLine() scanner.nextLine scanner "" for (int i = target.length - 1; i > 0; i--) {
			System.out.print(target[i]);
		} int i = target.length - 1; int i = target.length - 1; i target.length - 1 target.length target target.length 1 i > 0 i 0 i-- i-- i {
			System.out.print(target[i]);
		} {
			System.out.print(target[i]);
		} System.out.print(target[i]) System.out.print System.out System System.out target[i] target i System.out.println(target[0]) System.out.println System.out System System.out target[0] target 0 String[] args args public class Main {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		Scanner scanner = new Scanner(System.in);
		String[] target = scanner.nextLine().split("");
		for (int i = target.length - 1; i > 0; i--) {
			System.out.print(target[i]);
		}
		System.out.println(target[0]);
	}
} public class Main {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		Scanner scanner = new Scanner(System.in);
		String[] target = scanner.nextLine().split("");
		for (int i = target.length - 1; i > 0; i--) {
			System.out.print(target[i]);
		}
		System.out.println(target[0]);
	}
} Main
import java.util.Scanner;

public class Main {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		Scanner scanner = new Scanner(System.in);
		String[] target = scanner.nextLine().split("");
		for (int i = target.length - 1; i > 0; i--) {
			System.out.print(target[i]);
		}
		System.out.println(target[0]);
	}
}