public class Main {
	static java.util.Scanner scan = new java.util.Scanner(System.in);
	public static void main(String[] args) {
		StringBuffer input = new StringBuffer(scan.nextLine());
		input.reverse();
		print(input.toString());
	}
	
	public static void print(Object out) {
		System.out.println(out);
	}
} public class Main {
	static java.util.Scanner scan = new java.util.Scanner(System.in);
	public static void main(String[] args) {
		StringBuffer input = new StringBuffer(scan.nextLine());
		input.reverse();
		print(input.toString());
	}
	
	public static void print(Object out) {
		System.out.println(out);
	}
} Main static java.util.Scanner scan = new java.util.Scanner(System.in); scan new java.util.Scanner(System.in) public static void main(String[] args) {
		StringBuffer input = new StringBuffer(scan.nextLine());
		input.reverse();
		print(input.toString());
	} main {
		StringBuffer input = new StringBuffer(scan.nextLine());
		input.reverse();
		print(input.toString());
	} StringBuffer input = new StringBuffer(scan.nextLine()); input new StringBuffer(scan.nextLine()) input.reverse() input.reverse input print(input.toString()) print input.toString() input.toString input String[] args args public static void print(Object out) {
		System.out.println(out);
	} print {
		System.out.println(out);
	} System.out.println(out) System.out.println System.out System System.out out Object out out public class Main {
	static java.util.Scanner scan = new java.util.Scanner(System.in);
	public static void main(String[] args) {
		StringBuffer input = new StringBuffer(scan.nextLine());
		input.reverse();
		print(input.toString());
	}
	
	public static void print(Object out) {
		System.out.println(out);
	}
} public class Main {
	static java.util.Scanner scan = new java.util.Scanner(System.in);
	public static void main(String[] args) {
		StringBuffer input = new StringBuffer(scan.nextLine());
		input.reverse();
		print(input.toString());
	}
	
	public static void print(Object out) {
		System.out.println(out);
	}
} Main
public class Main {
	static java.util.Scanner scan = new java.util.Scanner(System.in);
	public static void main(String[] args) {
		StringBuffer input = new StringBuffer(scan.nextLine());
		input.reverse();
		print(input.toString());
	}
	
	public static void print(Object out) {
		System.out.println(out);
	}
}