Write a program which reverses a given string str.



Input

str (the size of str ≤ 20) is given in a line.

Output

Print the reversed str in a line.

Example

Input

w32nimda


Output

admin23w

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);
	}

}