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();
	String str1;
	while(true)
	    {
		
		if((m==n) || (m>n))
		    {
			str1=String.valueOf(ch);
			break;
		    }
		
		
		char tmp=ch[m];
		ch[m]=ch[n];
		ch[n]=tmp;
		m++;
		n--;

	    }
	
		System.out.println(str1);
	    
    }
} 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();
	String str1;
	while(true)
	    {
		
		if((m==n) || (m>n))
		    {
			str1=String.valueOf(ch);
			break;
		    }
		
		
		char tmp=ch[m];
		ch[m]=ch[n];
		ch[n]=tmp;
		m++;
		n--;

	    }
	
		System.out.println(str1);
	    
    }
} 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();
	String str1;
	while(true)
	    {
		
		if((m==n) || (m>n))
		    {
			str1=String.valueOf(ch);
			break;
		    }
		
		
		char tmp=ch[m];
		ch[m]=ch[n];
		ch[n]=tmp;
		m++;
		n--;

	    }
	
		System.out.println(str1);
	    
    } main {
	BufferedReader input=new BufferedReader(new InputStreamReader(System.in));
	String str=input.readLine();
	int m=0,n=str.length()-1;
	char ch[]=str.toCharArray();
	String str1;
	while(true)
	    {
		
		if((m==n) || (m>n))
		    {
			str1=String.valueOf(ch);
			break;
		    }
		
		
		char tmp=ch[m];
		ch[m]=ch[n];
		ch[n]=tmp;
		m++;
		n--;

	    }
	
		System.out.println(str1);
	    
    } 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 String str1; str1 while(true)
	    {
		
		if((m==n) || (m>n))
		    {
			str1=String.valueOf(ch);
			break;
		    }
		
		
		char tmp=ch[m];
		ch[m]=ch[n];
		ch[n]=tmp;
		m++;
		n--;

	    } true {
		
		if((m==n) || (m>n))
		    {
			str1=String.valueOf(ch);
			break;
		    }
		
		
		char tmp=ch[m];
		ch[m]=ch[n];
		ch[n]=tmp;
		m++;
		n--;

	    } if((m==n) || (m>n))
		    {
			str1=String.valueOf(ch);
			break;
		    } (m==n) || (m>n) (m==n) m n (m>n) m n {
			str1=String.valueOf(ch);
			break;
		    } str1=String.valueOf(ch) str1 String.valueOf(ch) String.valueOf String ch break; char tmp=ch[m]; tmp ch[m] ch m ch[m]=ch[n] ch[m] ch m ch[n] ch n ch[n]=tmp ch[n] ch n tmp m++ m n-- n System.out.println(str1) System.out.println System.out System System.out str1 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();
	String str1;
	while(true)
	    {
		
		if((m==n) || (m>n))
		    {
			str1=String.valueOf(ch);
			break;
		    }
		
		
		char tmp=ch[m];
		ch[m]=ch[n];
		ch[n]=tmp;
		m++;
		n--;

	    }
	
		System.out.println(str1);
	    
    }
}