import java.io.*;
public class Main {
	public static void main(String[] args) throws java.io.IOException {
		BufferedReader input = new BufferedReader (new InputStreamReader (System.in));
		String str = input.readLine();
		int K = str.length();
		for(int a = K-1;a >= 0;a--){
			if(a==0){
				System.out.println(str.charAt(a));
			}else{
				System.out.print(str.charAt(a));
			}
		}
	}
} import java.io.*; io.* java public class Main {
	public static void main(String[] args) throws java.io.IOException {
		BufferedReader input = new BufferedReader (new InputStreamReader (System.in));
		String str = input.readLine();
		int K = str.length();
		for(int a = K-1;a >= 0;a--){
			if(a==0){
				System.out.println(str.charAt(a));
			}else{
				System.out.print(str.charAt(a));
			}
		}
	}
} Main public static void main(String[] args) throws java.io.IOException {
		BufferedReader input = new BufferedReader (new InputStreamReader (System.in));
		String str = input.readLine();
		int K = str.length();
		for(int a = K-1;a >= 0;a--){
			if(a==0){
				System.out.println(str.charAt(a));
			}else{
				System.out.print(str.charAt(a));
			}
		}
	} main {
		BufferedReader input = new BufferedReader (new InputStreamReader (System.in));
		String str = input.readLine();
		int K = str.length();
		for(int a = K-1;a >= 0;a--){
			if(a==0){
				System.out.println(str.charAt(a));
			}else{
				System.out.print(str.charAt(a));
			}
		}
	} BufferedReader input = new BufferedReader (new InputStreamReader (System.in)); input new BufferedReader (new InputStreamReader (System.in)) String str = input.readLine(); str input.readLine() input.readLine input int K = str.length(); K str.length() str.length str for(int a = K-1;a >= 0;a--){
			if(a==0){
				System.out.println(str.charAt(a));
			}else{
				System.out.print(str.charAt(a));
			}
		} int a = K-1; int a = K-1; a K-1 K 1 a >= 0 a 0 a-- a-- a {
			if(a==0){
				System.out.println(str.charAt(a));
			}else{
				System.out.print(str.charAt(a));
			}
		} {
			if(a==0){
				System.out.println(str.charAt(a));
			}else{
				System.out.print(str.charAt(a));
			}
		} if(a==0){
				System.out.println(str.charAt(a));
			}else{
				System.out.print(str.charAt(a));
			} a==0 a 0 {
				System.out.println(str.charAt(a));
			} System.out.println(str.charAt(a)) System.out.println System.out System System.out str.charAt(a) str.charAt str a {
				System.out.print(str.charAt(a));
			} System.out.print(str.charAt(a)) System.out.print System.out System System.out str.charAt(a) str.charAt str a String[] args args public class Main {
	public static void main(String[] args) throws java.io.IOException {
		BufferedReader input = new BufferedReader (new InputStreamReader (System.in));
		String str = input.readLine();
		int K = str.length();
		for(int a = K-1;a >= 0;a--){
			if(a==0){
				System.out.println(str.charAt(a));
			}else{
				System.out.print(str.charAt(a));
			}
		}
	}
} public class Main {
	public static void main(String[] args) throws java.io.IOException {
		BufferedReader input = new BufferedReader (new InputStreamReader (System.in));
		String str = input.readLine();
		int K = str.length();
		for(int a = K-1;a >= 0;a--){
			if(a==0){
				System.out.println(str.charAt(a));
			}else{
				System.out.print(str.charAt(a));
			}
		}
	}
} Main
import java.io.*;
public class Main {
	public static void main(String[] args) throws java.io.IOException {
		BufferedReader input = new BufferedReader (new InputStreamReader (System.in));
		String str = input.readLine();
		int K = str.length();
		for(int a = K-1;a >= 0;a--){
			if(a==0){
				System.out.println(str.charAt(a));
			}else{
				System.out.print(str.charAt(a));
			}
		}
	}
}