import java.io.*;
public class Main{
    static void scan()throws IOException{
	InputStreamReader isr = new InputStreamReader(System.in);
	BufferedReader br = new BufferedReader(isr);
	String str=br.readLine();
	turn(str);
    }

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

    static void turn(String str){
	int l = str.length();
	for(int i=l-1;i>0;i--)
	    System.out.print(str.charAt(i));
System.out.println(str.charAt(0));
    }
    
    public static void main(String[] args)throws IOException{
	scan();
    }
} Main static void scan()throws IOException{
	InputStreamReader isr = new InputStreamReader(System.in);
	BufferedReader br = new BufferedReader(isr);
	String str=br.readLine();
	turn(str);
    } scan {
	InputStreamReader isr = new InputStreamReader(System.in);
	BufferedReader br = new BufferedReader(isr);
	String str=br.readLine();
	turn(str);
    } InputStreamReader isr = new InputStreamReader(System.in); isr new InputStreamReader(System.in) BufferedReader br = new BufferedReader(isr); br new BufferedReader(isr) String str=br.readLine(); str br.readLine() br.readLine br turn(str) turn str static void turn(String str){
	int l = str.length();
	for(int i=l-1;i>0;i--)
	    System.out.print(str.charAt(i));
System.out.println(str.charAt(0));
    } turn {
	int l = str.length();
	for(int i=l-1;i>0;i--)
	    System.out.print(str.charAt(i));
System.out.println(str.charAt(0));
    } int l = str.length(); l str.length() str.length str for(int i=l-1;i>0;i--)
	    System.out.print(str.charAt(i)); int i=l-1; int i=l-1; i l-1 l 1 i>0 i 0 i-- i-- i System.out.print(str.charAt(i)); System.out.print(str.charAt(i)) System.out.print System.out System System.out str.charAt(i) str.charAt str i System.out.println(str.charAt(0)) System.out.println System.out System System.out str.charAt(0) str.charAt str 0 String str str public static void main(String[] args)throws IOException{
	scan();
    } main {
	scan();
    } scan() scan String[] args args public class Main{
    static void scan()throws IOException{
	InputStreamReader isr = new InputStreamReader(System.in);
	BufferedReader br = new BufferedReader(isr);
	String str=br.readLine();
	turn(str);
    }

    static void turn(String str){
	int l = str.length();
	for(int i=l-1;i>0;i--)
	    System.out.print(str.charAt(i));
System.out.println(str.charAt(0));
    }
    
    public static void main(String[] args)throws IOException{
	scan();
    }
} public class Main{
    static void scan()throws IOException{
	InputStreamReader isr = new InputStreamReader(System.in);
	BufferedReader br = new BufferedReader(isr);
	String str=br.readLine();
	turn(str);
    }

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

    static void turn(String str){
	int l = str.length();
	for(int i=l-1;i>0;i--)
	    System.out.print(str.charAt(i));
System.out.println(str.charAt(0));
    }
    
    public static void main(String[] args)throws IOException{
	scan();
    }
}