import java.util.*;
import java.io.*;
class Main{
    public static void main(String[] args){
	try{
	    BufferedReader s = new BufferedReader(new InputStreamReader(System.in));
	    String st = s.readLine();
	    for(int i=st.length()-1; i>=0; i--)
		System.out.print(st.charAt(i));
	    System.out.println();
	}catch(Exception e){
	    System.out.println("Error");
	}
    }
} import java.util.*; util.* java import java.io.*; io.* java class Main{
    public static void main(String[] args){
	try{
	    BufferedReader s = new BufferedReader(new InputStreamReader(System.in));
	    String st = s.readLine();
	    for(int i=st.length()-1; i>=0; i--)
		System.out.print(st.charAt(i));
	    System.out.println();
	}catch(Exception e){
	    System.out.println("Error");
	}
    }
} Main public static void main(String[] args){
	try{
	    BufferedReader s = new BufferedReader(new InputStreamReader(System.in));
	    String st = s.readLine();
	    for(int i=st.length()-1; i>=0; i--)
		System.out.print(st.charAt(i));
	    System.out.println();
	}catch(Exception e){
	    System.out.println("Error");
	}
    } main {
	try{
	    BufferedReader s = new BufferedReader(new InputStreamReader(System.in));
	    String st = s.readLine();
	    for(int i=st.length()-1; i>=0; i--)
		System.out.print(st.charAt(i));
	    System.out.println();
	}catch(Exception e){
	    System.out.println("Error");
	}
    } try{
	    BufferedReader s = new BufferedReader(new InputStreamReader(System.in));
	    String st = s.readLine();
	    for(int i=st.length()-1; i>=0; i--)
		System.out.print(st.charAt(i));
	    System.out.println();
	}catch(Exception e){
	    System.out.println("Error");
	} catch(Exception e){
	    System.out.println("Error");
	} Exception e {
	    System.out.println("Error");
	} System.out.println("Error") System.out.println System.out System System.out "Error" {
	    BufferedReader s = new BufferedReader(new InputStreamReader(System.in));
	    String st = s.readLine();
	    for(int i=st.length()-1; i>=0; i--)
		System.out.print(st.charAt(i));
	    System.out.println();
	} BufferedReader s = new BufferedReader(new InputStreamReader(System.in)); s new BufferedReader(new InputStreamReader(System.in)) String st = s.readLine(); st s.readLine() s.readLine s for(int i=st.length()-1; i>=0; i--)
		System.out.print(st.charAt(i)); int i=st.length()-1; int i=st.length()-1; i st.length()-1 st.length() st.length st 1 i>=0 i 0 i-- i-- i System.out.print(st.charAt(i)); System.out.print(st.charAt(i)) System.out.print System.out System System.out st.charAt(i) st.charAt st i System.out.println() System.out.println System.out System System.out String[] args args
import java.util.*;
import java.io.*;
class Main{
    public static void main(String[] args){
	try{
	    BufferedReader s = new BufferedReader(new InputStreamReader(System.in));
	    String st = s.readLine();
	    for(int i=st.length()-1; i>=0; i--)
		System.out.print(st.charAt(i));
	    System.out.println();
	}catch(Exception e){
	    System.out.println("Error");
	}
    }
}