
public class Main {
	public static void main(String[] args) {
		java.util.Scanner sc = new java.util.Scanner(System.in);
		String original = sc.next();
		String to_reverse = "";
		
		for (int i = original.length() - 1; i >= 0; i--) {
			to_reverse += original.charAt(i);
		}
		
		System.out.println(to_reverse);
	}

} public class Main {
	public static void main(String[] args) {
		java.util.Scanner sc = new java.util.Scanner(System.in);
		String original = sc.next();
		String to_reverse = "";
		
		for (int i = original.length() - 1; i >= 0; i--) {
			to_reverse += original.charAt(i);
		}
		
		System.out.println(to_reverse);
	}

} Main public static void main(String[] args) {
		java.util.Scanner sc = new java.util.Scanner(System.in);
		String original = sc.next();
		String to_reverse = "";
		
		for (int i = original.length() - 1; i >= 0; i--) {
			to_reverse += original.charAt(i);
		}
		
		System.out.println(to_reverse);
	} main {
		java.util.Scanner sc = new java.util.Scanner(System.in);
		String original = sc.next();
		String to_reverse = "";
		
		for (int i = original.length() - 1; i >= 0; i--) {
			to_reverse += original.charAt(i);
		}
		
		System.out.println(to_reverse);
	} java.util.Scanner sc = new java.util.Scanner(System.in); sc new java.util.Scanner(System.in) String original = sc.next(); original sc.next() sc.next sc String to_reverse = ""; to_reverse "" for (int i = original.length() - 1; i >= 0; i--) {
			to_reverse += original.charAt(i);
		} int i = original.length() - 1; int i = original.length() - 1; i original.length() - 1 original.length() original.length original 1 i >= 0 i 0 i-- i-- i {
			to_reverse += original.charAt(i);
		} {
			to_reverse += original.charAt(i);
		} to_reverse += original.charAt(i) to_reverse original.charAt(i) original.charAt original i System.out.println(to_reverse) System.out.println System.out System System.out to_reverse String[] args args public class Main {
	public static void main(String[] args) {
		java.util.Scanner sc = new java.util.Scanner(System.in);
		String original = sc.next();
		String to_reverse = "";
		
		for (int i = original.length() - 1; i >= 0; i--) {
			to_reverse += original.charAt(i);
		}
		
		System.out.println(to_reverse);
	}

} public class Main {
	public static void main(String[] args) {
		java.util.Scanner sc = new java.util.Scanner(System.in);
		String original = sc.next();
		String to_reverse = "";
		
		for (int i = original.length() - 1; i >= 0; i--) {
			to_reverse += original.charAt(i);
		}
		
		System.out.println(to_reverse);
	}

} Main

public class Main {
	public static void main(String[] args) {
		java.util.Scanner sc = new java.util.Scanner(System.in);
		String original = sc.next();
		String to_reverse = "";
		
		for (int i = original.length() - 1; i >= 0; i--) {
			to_reverse += original.charAt(i);
		}
		
		System.out.println(to_reverse);
	}

}