import java.util.Scanner;

public class Main
{
	public static void main(String[] args)
	{
		Scanner sc = new Scanner(System.in);
			String str = sc.next();
			char[] str_array = new char[20];
				for(int i = 0; i < str.length(); i++)
				{
					str_array[i] = str.charAt(i);
				}
				for(int i = 0; i < str.length(); i++)
				{
					System.out.print(str_array[str.length()-i-1]);
				}
					System.out.println();
	}
} import java.util.Scanner; Scanner java.util public class Main
{
	public static void main(String[] args)
	{
		Scanner sc = new Scanner(System.in);
			String str = sc.next();
			char[] str_array = new char[20];
				for(int i = 0; i < str.length(); i++)
				{
					str_array[i] = str.charAt(i);
				}
				for(int i = 0; i < str.length(); i++)
				{
					System.out.print(str_array[str.length()-i-1]);
				}
					System.out.println();
	}
} Main public static void main(String[] args)
	{
		Scanner sc = new Scanner(System.in);
			String str = sc.next();
			char[] str_array = new char[20];
				for(int i = 0; i < str.length(); i++)
				{
					str_array[i] = str.charAt(i);
				}
				for(int i = 0; i < str.length(); i++)
				{
					System.out.print(str_array[str.length()-i-1]);
				}
					System.out.println();
	} main {
		Scanner sc = new Scanner(System.in);
			String str = sc.next();
			char[] str_array = new char[20];
				for(int i = 0; i < str.length(); i++)
				{
					str_array[i] = str.charAt(i);
				}
				for(int i = 0; i < str.length(); i++)
				{
					System.out.print(str_array[str.length()-i-1]);
				}
					System.out.println();
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String str = sc.next(); str sc.next() sc.next sc char[] str_array = new char[20]; str_array new char[20] 20 for(int i = 0; i < str.length(); i++)
				{
					str_array[i] = str.charAt(i);
				} int i = 0; int i = 0; i 0 i < str.length() i str.length() str.length str i++ i++ i {
					str_array[i] = str.charAt(i);
				} {
					str_array[i] = str.charAt(i);
				} str_array[i] = str.charAt(i) str_array[i] str_array i str.charAt(i) str.charAt str i for(int i = 0; i < str.length(); i++)
				{
					System.out.print(str_array[str.length()-i-1]);
				} int i = 0; int i = 0; i 0 i < str.length() i str.length() str.length str i++ i++ i {
					System.out.print(str_array[str.length()-i-1]);
				} {
					System.out.print(str_array[str.length()-i-1]);
				} System.out.print(str_array[str.length()-i-1]) System.out.print System.out System System.out str_array[str.length()-i-1] str_array str.length()-i-1 str.length()-i-1 str.length() str.length str i 1 System.out.println() System.out.println System.out System System.out String[] args args public class Main
{
	public static void main(String[] args)
	{
		Scanner sc = new Scanner(System.in);
			String str = sc.next();
			char[] str_array = new char[20];
				for(int i = 0; i < str.length(); i++)
				{
					str_array[i] = str.charAt(i);
				}
				for(int i = 0; i < str.length(); i++)
				{
					System.out.print(str_array[str.length()-i-1]);
				}
					System.out.println();
	}
} public class Main
{
	public static void main(String[] args)
	{
		Scanner sc = new Scanner(System.in);
			String str = sc.next();
			char[] str_array = new char[20];
				for(int i = 0; i < str.length(); i++)
				{
					str_array[i] = str.charAt(i);
				}
				for(int i = 0; i < str.length(); i++)
				{
					System.out.print(str_array[str.length()-i-1]);
				}
					System.out.println();
	}
} Main
import java.util.Scanner;

public class Main
{
	public static void main(String[] args)
	{
		Scanner sc = new Scanner(System.in);
			String str = sc.next();
			char[] str_array = new char[20];
				for(int i = 0; i < str.length(); i++)
				{
					str_array[i] = str.charAt(i);
				}
				for(int i = 0; i < str.length(); i++)
				{
					System.out.print(str_array[str.length()-i-1]);
				}
					System.out.println();
	}
}