import java.util.Scanner;

class Main{
	public static void main(String[] a){
		Scanner scanner = new Scanner(System.in);
		String input = scanner.nextLine();
        scanner.close();
		if (input.length() > 20) return;
		String reverse="";
		
		char[] c = input.toCharArray();
		for (int i = c.length; i > 0; i--) {
			reverse += c[i-1];
		}
		System.out.println(reverse);
	}
} import java.util.Scanner; Scanner java.util class Main{
	public static void main(String[] a){
		Scanner scanner = new Scanner(System.in);
		String input = scanner.nextLine();
        scanner.close();
		if (input.length() > 20) return;
		String reverse="";
		
		char[] c = input.toCharArray();
		for (int i = c.length; i > 0; i--) {
			reverse += c[i-1];
		}
		System.out.println(reverse);
	}
} Main public static void main(String[] a){
		Scanner scanner = new Scanner(System.in);
		String input = scanner.nextLine();
        scanner.close();
		if (input.length() > 20) return;
		String reverse="";
		
		char[] c = input.toCharArray();
		for (int i = c.length; i > 0; i--) {
			reverse += c[i-1];
		}
		System.out.println(reverse);
	} main {
		Scanner scanner = new Scanner(System.in);
		String input = scanner.nextLine();
        scanner.close();
		if (input.length() > 20) return;
		String reverse="";
		
		char[] c = input.toCharArray();
		for (int i = c.length; i > 0; i--) {
			reverse += c[i-1];
		}
		System.out.println(reverse);
	} Scanner scanner = new Scanner(System.in); scanner new Scanner(System.in) String input = scanner.nextLine(); input scanner.nextLine() scanner.nextLine scanner scanner.close() scanner.close scanner if (input.length() > 20) return; input.length() > 20 input.length() input.length input 20 return; String reverse=""; reverse "" char[] c = input.toCharArray(); c input.toCharArray() input.toCharArray input for (int i = c.length; i > 0; i--) {
			reverse += c[i-1];
		} int i = c.length; int i = c.length; i c.length c c.length i > 0 i 0 i-- i-- i {
			reverse += c[i-1];
		} {
			reverse += c[i-1];
		} reverse += c[i-1] reverse c[i-1] c i-1 i 1 System.out.println(reverse) System.out.println System.out System System.out reverse String[] a a
import java.util.Scanner;

class Main{
	public static void main(String[] a){
		Scanner scanner = new Scanner(System.in);
		String input = scanner.nextLine();
        scanner.close();
		if (input.length() > 20) return;
		String reverse="";
		
		char[] c = input.toCharArray();
		for (int i = c.length; i > 0; i--) {
			reverse += c[i-1];
		}
		System.out.println(reverse);
	}
}