import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		Scanner scanner = new Scanner(System.in);
		String a = scanner.nextLine();
		if (a.length() <= 20) {
			StringBuffer buffer = new StringBuffer(a);
			System.out.println(buffer.reverse());
		}
	}
} import java.util.Scanner; Scanner java.util public class Main {
	public static void main(String[] args) {
		Scanner scanner = new Scanner(System.in);
		String a = scanner.nextLine();
		if (a.length() <= 20) {
			StringBuffer buffer = new StringBuffer(a);
			System.out.println(buffer.reverse());
		}
	}
} Main public static void main(String[] args) {
		Scanner scanner = new Scanner(System.in);
		String a = scanner.nextLine();
		if (a.length() <= 20) {
			StringBuffer buffer = new StringBuffer(a);
			System.out.println(buffer.reverse());
		}
	} main {
		Scanner scanner = new Scanner(System.in);
		String a = scanner.nextLine();
		if (a.length() <= 20) {
			StringBuffer buffer = new StringBuffer(a);
			System.out.println(buffer.reverse());
		}
	} Scanner scanner = new Scanner(System.in); scanner new Scanner(System.in) String a = scanner.nextLine(); a scanner.nextLine() scanner.nextLine scanner if (a.length() <= 20) {
			StringBuffer buffer = new StringBuffer(a);
			System.out.println(buffer.reverse());
		} a.length() <= 20 a.length() a.length a 20 {
			StringBuffer buffer = new StringBuffer(a);
			System.out.println(buffer.reverse());
		} StringBuffer buffer = new StringBuffer(a); buffer new StringBuffer(a) System.out.println(buffer.reverse()) System.out.println System.out System System.out buffer.reverse() buffer.reverse buffer String[] args args public class Main {
	public static void main(String[] args) {
		Scanner scanner = new Scanner(System.in);
		String a = scanner.nextLine();
		if (a.length() <= 20) {
			StringBuffer buffer = new StringBuffer(a);
			System.out.println(buffer.reverse());
		}
	}
} public class Main {
	public static void main(String[] args) {
		Scanner scanner = new Scanner(System.in);
		String a = scanner.nextLine();
		if (a.length() <= 20) {
			StringBuffer buffer = new StringBuffer(a);
			System.out.println(buffer.reverse());
		}
	}
} Main
import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		Scanner scanner = new Scanner(System.in);
		String a = scanner.nextLine();
		if (a.length() <= 20) {
			StringBuffer buffer = new StringBuffer(a);
			System.out.println(buffer.reverse());
		}
	}
}