import java.util.Scanner;


public class Main {
	Scanner sc = new Scanner(System.in);
	
	void run(){
		char c[] = sc.next().toCharArray();
		int l = c.length;
		while(l-- != 0){
			System.out.print(c[l]);
		}
		System.out.println();
	}
	
	public static void main(String[] args) {
		new Main().run();
	}
} import java.util.Scanner; Scanner java.util public class Main {
	Scanner sc = new Scanner(System.in);
	
	void run(){
		char c[] = sc.next().toCharArray();
		int l = c.length;
		while(l-- != 0){
			System.out.print(c[l]);
		}
		System.out.println();
	}
	
	public static void main(String[] args) {
		new Main().run();
	}
} Main Scanner sc = new Scanner(System.in); sc new Scanner(System.in) void run(){
		char c[] = sc.next().toCharArray();
		int l = c.length;
		while(l-- != 0){
			System.out.print(c[l]);
		}
		System.out.println();
	} run {
		char c[] = sc.next().toCharArray();
		int l = c.length;
		while(l-- != 0){
			System.out.print(c[l]);
		}
		System.out.println();
	} char c[] = sc.next().toCharArray(); c sc.next().toCharArray() sc.next().toCharArray sc.next() sc.next sc int l = c.length; l c.length c c.length while(l-- != 0){
			System.out.print(c[l]);
		} l-- != 0 l-- l 0 {
			System.out.print(c[l]);
		} System.out.print(c[l]) System.out.print System.out System System.out c[l] c l System.out.println() System.out.println System.out System System.out public static void main(String[] args) {
		new Main().run();
	} main {
		new Main().run();
	} new Main().run() new Main().run new Main() String[] args args public class Main {
	Scanner sc = new Scanner(System.in);
	
	void run(){
		char c[] = sc.next().toCharArray();
		int l = c.length;
		while(l-- != 0){
			System.out.print(c[l]);
		}
		System.out.println();
	}
	
	public static void main(String[] args) {
		new Main().run();
	}
} public class Main {
	Scanner sc = new Scanner(System.in);
	
	void run(){
		char c[] = sc.next().toCharArray();
		int l = c.length;
		while(l-- != 0){
			System.out.print(c[l]);
		}
		System.out.println();
	}
	
	public static void main(String[] args) {
		new Main().run();
	}
} Main
import java.util.Scanner;


public class Main {
	Scanner sc = new Scanner(System.in);
	
	void run(){
		char c[] = sc.next().toCharArray();
		int l = c.length;
		while(l-- != 0){
			System.out.print(c[l]);
		}
		System.out.println();
	}
	
	public static void main(String[] args) {
		new Main().run();
	}
}