import java.util.Scanner;


class Main 
{
	public static void main(String[] args) 
	{
		Scanner sc = new Scanner(System.in);
		System.out.println(new StringBuilder(sc.nextLine()).reverse());
	}
} import java.util.Scanner; Scanner java.util class Main 
{
	public static void main(String[] args) 
	{
		Scanner sc = new Scanner(System.in);
		System.out.println(new StringBuilder(sc.nextLine()).reverse());
	}
} Main public static void main(String[] args) 
	{
		Scanner sc = new Scanner(System.in);
		System.out.println(new StringBuilder(sc.nextLine()).reverse());
	} main {
		Scanner sc = new Scanner(System.in);
		System.out.println(new StringBuilder(sc.nextLine()).reverse());
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) System.out.println(new StringBuilder(sc.nextLine()).reverse()) System.out.println System.out System System.out new StringBuilder(sc.nextLine()).reverse() new StringBuilder(sc.nextLine()).reverse new StringBuilder(sc.nextLine()) String[] args args
import java.util.Scanner;


class Main 
{
	public static void main(String[] args) 
	{
		Scanner sc = new Scanner(System.in);
		System.out.println(new StringBuilder(sc.nextLine()).reverse());
	}
}