import java.io.File;
import java.util.HashSet;
import java.util.Scanner;


public class Main {

		  public static void main(String[] args) throws Exception{
			  
		  try {
		        Scanner input = new Scanner(System.in);

		        while (input.hasNext()) {
		         String reverse;
		         String string = input.nextLine();
		         reverse = new StringBuilder(string).reverse().toString();
		         System.out.println(reverse);
		        }    
		         	        
		        input.close();

		        } catch (Exception ex) {
		            ex.printStackTrace();
		        }
		    }
		} import java.io.File; File java.io import java.util.HashSet; HashSet java.util import java.util.Scanner; Scanner java.util public class Main {

		  public static void main(String[] args) throws Exception{
			  
		  try {
		        Scanner input = new Scanner(System.in);

		        while (input.hasNext()) {
		         String reverse;
		         String string = input.nextLine();
		         reverse = new StringBuilder(string).reverse().toString();
		         System.out.println(reverse);
		        }    
		         	        
		        input.close();

		        } catch (Exception ex) {
		            ex.printStackTrace();
		        }
		    }
		} Main public static void main(String[] args) throws Exception{
			  
		  try {
		        Scanner input = new Scanner(System.in);

		        while (input.hasNext()) {
		         String reverse;
		         String string = input.nextLine();
		         reverse = new StringBuilder(string).reverse().toString();
		         System.out.println(reverse);
		        }    
		         	        
		        input.close();

		        } catch (Exception ex) {
		            ex.printStackTrace();
		        }
		    } main {
			  
		  try {
		        Scanner input = new Scanner(System.in);

		        while (input.hasNext()) {
		         String reverse;
		         String string = input.nextLine();
		         reverse = new StringBuilder(string).reverse().toString();
		         System.out.println(reverse);
		        }    
		         	        
		        input.close();

		        } catch (Exception ex) {
		            ex.printStackTrace();
		        }
		    } try {
		        Scanner input = new Scanner(System.in);

		        while (input.hasNext()) {
		         String reverse;
		         String string = input.nextLine();
		         reverse = new StringBuilder(string).reverse().toString();
		         System.out.println(reverse);
		        }    
		         	        
		        input.close();

		        } catch (Exception ex) {
		            ex.printStackTrace();
		        } catch (Exception ex) {
		            ex.printStackTrace();
		        } Exception ex {
		            ex.printStackTrace();
		        } ex.printStackTrace() ex.printStackTrace ex {
		        Scanner input = new Scanner(System.in);

		        while (input.hasNext()) {
		         String reverse;
		         String string = input.nextLine();
		         reverse = new StringBuilder(string).reverse().toString();
		         System.out.println(reverse);
		        }    
		         	        
		        input.close();

		        } Scanner input = new Scanner(System.in); input new Scanner(System.in) while (input.hasNext()) {
		         String reverse;
		         String string = input.nextLine();
		         reverse = new StringBuilder(string).reverse().toString();
		         System.out.println(reverse);
		        } input.hasNext() input.hasNext input {
		         String reverse;
		         String string = input.nextLine();
		         reverse = new StringBuilder(string).reverse().toString();
		         System.out.println(reverse);
		        } String reverse; reverse String string = input.nextLine(); string input.nextLine() input.nextLine input reverse = new StringBuilder(string).reverse().toString() reverse new StringBuilder(string).reverse().toString() new StringBuilder(string).reverse().toString new StringBuilder(string).reverse() new StringBuilder(string).reverse new StringBuilder(string) System.out.println(reverse) System.out.println System.out System System.out reverse input.close() input.close input String[] args args public class Main {

		  public static void main(String[] args) throws Exception{
			  
		  try {
		        Scanner input = new Scanner(System.in);

		        while (input.hasNext()) {
		         String reverse;
		         String string = input.nextLine();
		         reverse = new StringBuilder(string).reverse().toString();
		         System.out.println(reverse);
		        }    
		         	        
		        input.close();

		        } catch (Exception ex) {
		            ex.printStackTrace();
		        }
		    }
		} public class Main {

		  public static void main(String[] args) throws Exception{
			  
		  try {
		        Scanner input = new Scanner(System.in);

		        while (input.hasNext()) {
		         String reverse;
		         String string = input.nextLine();
		         reverse = new StringBuilder(string).reverse().toString();
		         System.out.println(reverse);
		        }    
		         	        
		        input.close();

		        } catch (Exception ex) {
		            ex.printStackTrace();
		        }
		    }
		} Main
import java.io.File;
import java.util.HashSet;
import java.util.Scanner;


public class Main {

		  public static void main(String[] args) throws Exception{
			  
		  try {
		        Scanner input = new Scanner(System.in);

		        while (input.hasNext()) {
		         String reverse;
		         String string = input.nextLine();
		         reverse = new StringBuilder(string).reverse().toString();
		         System.out.println(reverse);
		        }    
		         	        
		        input.close();

		        } catch (Exception ex) {
		            ex.printStackTrace();
		        }
		    }
		}