import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner sc=new Scanner(System.in);
		char[] line=sc.nextLine().toCharArray();
		for(int i=line.length-1;0<=i;i--){
			System.out.print(line[i]);
		}
		System.out.println();
	}
} import java.util.Scanner; Scanner java.util public class Main {

	public static void main(String[] args) {
		Scanner sc=new Scanner(System.in);
		char[] line=sc.nextLine().toCharArray();
		for(int i=line.length-1;0<=i;i--){
			System.out.print(line[i]);
		}
		System.out.println();
	}
} Main public static void main(String[] args) {
		Scanner sc=new Scanner(System.in);
		char[] line=sc.nextLine().toCharArray();
		for(int i=line.length-1;0<=i;i--){
			System.out.print(line[i]);
		}
		System.out.println();
	} main {
		Scanner sc=new Scanner(System.in);
		char[] line=sc.nextLine().toCharArray();
		for(int i=line.length-1;0<=i;i--){
			System.out.print(line[i]);
		}
		System.out.println();
	} Scanner sc=new Scanner(System.in); sc new Scanner(System.in) char[] line=sc.nextLine().toCharArray(); line sc.nextLine().toCharArray() sc.nextLine().toCharArray sc.nextLine() sc.nextLine sc for(int i=line.length-1;0<=i;i--){
			System.out.print(line[i]);
		} int i=line.length-1; int i=line.length-1; i line.length-1 line.length line line.length 1 0<=i 0 i i-- i-- i {
			System.out.print(line[i]);
		} {
			System.out.print(line[i]);
		} System.out.print(line[i]) System.out.print System.out System System.out line[i] line i System.out.println() System.out.println System.out System System.out String[] args args public class Main {

	public static void main(String[] args) {
		Scanner sc=new Scanner(System.in);
		char[] line=sc.nextLine().toCharArray();
		for(int i=line.length-1;0<=i;i--){
			System.out.print(line[i]);
		}
		System.out.println();
	}
} public class Main {

	public static void main(String[] args) {
		Scanner sc=new Scanner(System.in);
		char[] line=sc.nextLine().toCharArray();
		for(int i=line.length-1;0<=i;i--){
			System.out.print(line[i]);
		}
		System.out.println();
	}
} Main
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner sc=new Scanner(System.in);
		char[] line=sc.nextLine().toCharArray();
		for(int i=line.length-1;0<=i;i--){
			System.out.print(line[i]);
		}
		System.out.println();
	}
}