import java.io.*;
public class Main{
	public static void main(String[] args)throws IOException {
		BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
		String str=br.readLine();
		String out="";
		for(int i=str.length()-1;i>=0;i--){
			out+=str.substring(i,i+1);
		}
		System.out.println(out);
	}

} import java.io.*; io.* java public class Main{
	public static void main(String[] args)throws IOException {
		BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
		String str=br.readLine();
		String out="";
		for(int i=str.length()-1;i>=0;i--){
			out+=str.substring(i,i+1);
		}
		System.out.println(out);
	}

} Main public static void main(String[] args)throws IOException {
		BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
		String str=br.readLine();
		String out="";
		for(int i=str.length()-1;i>=0;i--){
			out+=str.substring(i,i+1);
		}
		System.out.println(out);
	} main {
		BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
		String str=br.readLine();
		String out="";
		for(int i=str.length()-1;i>=0;i--){
			out+=str.substring(i,i+1);
		}
		System.out.println(out);
	} BufferedReader br=new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) String str=br.readLine(); str br.readLine() br.readLine br String out=""; out "" for(int i=str.length()-1;i>=0;i--){
			out+=str.substring(i,i+1);
		} int i=str.length()-1; int i=str.length()-1; i str.length()-1 str.length() str.length str 1 i>=0 i 0 i-- i-- i {
			out+=str.substring(i,i+1);
		} {
			out+=str.substring(i,i+1);
		} out+=str.substring(i,i+1) out str.substring(i,i+1) str.substring str i i+1 i 1 System.out.println(out) System.out.println System.out System System.out out String[] args args public class Main{
	public static void main(String[] args)throws IOException {
		BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
		String str=br.readLine();
		String out="";
		for(int i=str.length()-1;i>=0;i--){
			out+=str.substring(i,i+1);
		}
		System.out.println(out);
	}

} public class Main{
	public static void main(String[] args)throws IOException {
		BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
		String str=br.readLine();
		String out="";
		for(int i=str.length()-1;i>=0;i--){
			out+=str.substring(i,i+1);
		}
		System.out.println(out);
	}

} Main
import java.io.*;
public class Main{
	public static void main(String[] args)throws IOException {
		BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
		String str=br.readLine();
		String out="";
		for(int i=str.length()-1;i>=0;i--){
			out+=str.substring(i,i+1);
		}
		System.out.println(out);
	}

}