import java.util.Scanner;

class Main {
	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		System.out.println(new StringBuilder(scan.next()).reverse().toString());
	}
} import java.util.Scanner; Scanner java.util class Main {
	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		System.out.println(new StringBuilder(scan.next()).reverse().toString());
	}
} Main public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		System.out.println(new StringBuilder(scan.next()).reverse().toString());
	} main {
		Scanner scan = new Scanner(System.in);
		System.out.println(new StringBuilder(scan.next()).reverse().toString());
	} Scanner scan = new Scanner(System.in); scan new Scanner(System.in) System.out.println(new StringBuilder(scan.next()).reverse().toString()) System.out.println System.out System System.out new StringBuilder(scan.next()).reverse().toString() new StringBuilder(scan.next()).reverse().toString new StringBuilder(scan.next()).reverse() new StringBuilder(scan.next()).reverse new StringBuilder(scan.next()) String[] args args
import java.util.Scanner;

class Main {
	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		System.out.println(new StringBuilder(scan.next()).reverse().toString());
	}
}