import java.io.*;
class Main
{
    public static void main(String args[])throws IOException
    {
	BufferedReader input=new BufferedReader(new InputStreamReader(System.in));
	String str=input.readLine();
	int m=0,n=str.length()-1;
	char ch[]=str.toCharArray();
	for(int i=n;i>=0;i--)
	    {
		System.out.print(ch[i]);
	    }
	System.out.println();
	    
    }
} import java.io.*; io.* java class Main
{
    public static void main(String args[])throws IOException
    {
	BufferedReader input=new BufferedReader(new InputStreamReader(System.in));
	String str=input.readLine();
	int m=0,n=str.length()-1;
	char ch[]=str.toCharArray();
	for(int i=n;i>=0;i--)
	    {
		System.out.print(ch[i]);
	    }
	System.out.println();
	    
    }
} Main public static void main(String args[])throws IOException
    {
	BufferedReader input=new BufferedReader(new InputStreamReader(System.in));
	String str=input.readLine();
	int m=0,n=str.length()-1;
	char ch[]=str.toCharArray();
	for(int i=n;i>=0;i--)
	    {
		System.out.print(ch[i]);
	    }
	System.out.println();
	    
    } main {
	BufferedReader input=new BufferedReader(new InputStreamReader(System.in));
	String str=input.readLine();
	int m=0,n=str.length()-1;
	char ch[]=str.toCharArray();
	for(int i=n;i>=0;i--)
	    {
		System.out.print(ch[i]);
	    }
	System.out.println();
	    
    } 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 m=0 m 0 n=str.length()-1; n str.length()-1 str.length() str.length str 1 char ch[]=str.toCharArray(); ch str.toCharArray() str.toCharArray str for(int i=n;i>=0;i--)
	    {
		System.out.print(ch[i]);
	    } int i=n; int i=n; i n i>=0 i 0 i-- i-- i {
		System.out.print(ch[i]);
	    } {
		System.out.print(ch[i]);
	    } System.out.print(ch[i]) System.out.print System.out System System.out ch[i] ch i System.out.println() System.out.println System.out System System.out String args[] args
import java.io.*;
class Main
{
    public static void main(String args[])throws IOException
    {
	BufferedReader input=new BufferedReader(new InputStreamReader(System.in));
	String str=input.readLine();
	int m=0,n=str.length()-1;
	char ch[]=str.toCharArray();
	for(int i=n;i>=0;i--)
	    {
		System.out.print(ch[i]);
	    }
	System.out.println();
	    
    }
}