/* package whatever; // don't place package name! */

import java.util.*;
import java.lang.*;
import java.io.*;

/* Name of the class has to be "Main" only if the class is public. */
class Ideone
{
	public static void main (String[] args) throws java.lang.Exception
	{
		Scanner sc = new Scanner(System.in);

    String hold = "";
    int j = 0;

    System.out.print("Enter a number: ");
    hold = sc.next();


    String test = "";


    for(int i = hold.length() - 1 ; i >= 0 ; i--) {
        test += hold.charAt(i);
    }

    System.out.print(test);;

    sc.close();
	}
}