import java.io.*;
import java.util.ArrayList;

public class Main {
	
	
    public static void main(String[] args) {
       
    	try {
            BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
         
          
            String str;
            ArrayList<Character> array = new ArrayList<Character>();
            
            while((str = br.readLine()) != null)
            {
            	for(int i = str.length()-1; i>=0; i--)
            	{
            	array.add(str.charAt(i));
            	}
            	
            	for(int i = 0; i<array.size();i++)
            	{
            	System.out.print(array.get(i));
            	}
            	System.out.println();
            }
    	}catch (Exception e) {
            e.printStackTrace();
        }
       
    }
    
   
} import java.io.*; io.* java import java.util.ArrayList; ArrayList java.util public class Main {
	
	
    public static void main(String[] args) {
       
    	try {
            BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
         
          
            String str;
            ArrayList<Character> array = new ArrayList<Character>();
            
            while((str = br.readLine()) != null)
            {
            	for(int i = str.length()-1; i>=0; i--)
            	{
            	array.add(str.charAt(i));
            	}
            	
            	for(int i = 0; i<array.size();i++)
            	{
            	System.out.print(array.get(i));
            	}
            	System.out.println();
            }
    	}catch (Exception e) {
            e.printStackTrace();
        }
       
    }
    
   
} Main public static void main(String[] args) {
       
    	try {
            BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
         
          
            String str;
            ArrayList<Character> array = new ArrayList<Character>();
            
            while((str = br.readLine()) != null)
            {
            	for(int i = str.length()-1; i>=0; i--)
            	{
            	array.add(str.charAt(i));
            	}
            	
            	for(int i = 0; i<array.size();i++)
            	{
            	System.out.print(array.get(i));
            	}
            	System.out.println();
            }
    	}catch (Exception e) {
            e.printStackTrace();
        }
       
    } main {
       
    	try {
            BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
         
          
            String str;
            ArrayList<Character> array = new ArrayList<Character>();
            
            while((str = br.readLine()) != null)
            {
            	for(int i = str.length()-1; i>=0; i--)
            	{
            	array.add(str.charAt(i));
            	}
            	
            	for(int i = 0; i<array.size();i++)
            	{
            	System.out.print(array.get(i));
            	}
            	System.out.println();
            }
    	}catch (Exception e) {
            e.printStackTrace();
        }
       
    } try {
            BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
         
          
            String str;
            ArrayList<Character> array = new ArrayList<Character>();
            
            while((str = br.readLine()) != null)
            {
            	for(int i = str.length()-1; i>=0; i--)
            	{
            	array.add(str.charAt(i));
            	}
            	
            	for(int i = 0; i<array.size();i++)
            	{
            	System.out.print(array.get(i));
            	}
            	System.out.println();
            }
    	}catch (Exception e) {
            e.printStackTrace();
        } catch (Exception e) {
            e.printStackTrace();
        } Exception e {
            e.printStackTrace();
        } e.printStackTrace() e.printStackTrace e {
            BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
         
          
            String str;
            ArrayList<Character> array = new ArrayList<Character>();
            
            while((str = br.readLine()) != null)
            {
            	for(int i = str.length()-1; i>=0; i--)
            	{
            	array.add(str.charAt(i));
            	}
            	
            	for(int i = 0; i<array.size();i++)
            	{
            	System.out.print(array.get(i));
            	}
            	System.out.println();
            }
    	} BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) String str; str ArrayList<Character> array = new ArrayList<Character>(); array new ArrayList<Character>() while((str = br.readLine()) != null)
            {
            	for(int i = str.length()-1; i>=0; i--)
            	{
            	array.add(str.charAt(i));
            	}
            	
            	for(int i = 0; i<array.size();i++)
            	{
            	System.out.print(array.get(i));
            	}
            	System.out.println();
            } (str = br.readLine()) != null (str = br.readLine()) str br.readLine() br.readLine br null {
            	for(int i = str.length()-1; i>=0; i--)
            	{
            	array.add(str.charAt(i));
            	}
            	
            	for(int i = 0; i<array.size();i++)
            	{
            	System.out.print(array.get(i));
            	}
            	System.out.println();
            } for(int i = str.length()-1; i>=0; i--)
            	{
            	array.add(str.charAt(i));
            	} 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 {
            	array.add(str.charAt(i));
            	} {
            	array.add(str.charAt(i));
            	} array.add(str.charAt(i)) array.add array str.charAt(i) str.charAt str i for(int i = 0; i<array.size();i++)
            	{
            	System.out.print(array.get(i));
            	} int i = 0; int i = 0; i 0 i<array.size() i array.size() array.size array i++ i++ i {
            	System.out.print(array.get(i));
            	} {
            	System.out.print(array.get(i));
            	} System.out.print(array.get(i)) System.out.print System.out System System.out array.get(i) array.get array i System.out.println() System.out.println System.out System System.out String[] args args public class Main {
	
	
    public static void main(String[] args) {
       
    	try {
            BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
         
          
            String str;
            ArrayList<Character> array = new ArrayList<Character>();
            
            while((str = br.readLine()) != null)
            {
            	for(int i = str.length()-1; i>=0; i--)
            	{
            	array.add(str.charAt(i));
            	}
            	
            	for(int i = 0; i<array.size();i++)
            	{
            	System.out.print(array.get(i));
            	}
            	System.out.println();
            }
    	}catch (Exception e) {
            e.printStackTrace();
        }
       
    }
    
   
} public class Main {
	
	
    public static void main(String[] args) {
       
    	try {
            BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
         
          
            String str;
            ArrayList<Character> array = new ArrayList<Character>();
            
            while((str = br.readLine()) != null)
            {
            	for(int i = str.length()-1; i>=0; i--)
            	{
            	array.add(str.charAt(i));
            	}
            	
            	for(int i = 0; i<array.size();i++)
            	{
            	System.out.print(array.get(i));
            	}
            	System.out.println();
            }
    	}catch (Exception e) {
            e.printStackTrace();
        }
       
    }
    
   
} Main
import java.io.*;
import java.util.ArrayList;

public class Main {
	
	
    public static void main(String[] args) {
       
    	try {
            BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
         
          
            String str;
            ArrayList<Character> array = new ArrayList<Character>();
            
            while((str = br.readLine()) != null)
            {
            	for(int i = str.length()-1; i>=0; i--)
            	{
            	array.add(str.charAt(i));
            	}
            	
            	for(int i = 0; i<array.size();i++)
            	{
            	System.out.print(array.get(i));
            	}
            	System.out.println();
            }
    	}catch (Exception e) {
            e.printStackTrace();
        }
       
    }
    
   
}