import java.util.Scanner;


public class Main 
{

	public static void main(String[] args) 
	{
		// TODO ©®¶¬³ê½\bhEX^u

		Scanner sc = new Scanner(System.in);
			String input = sc.nextLine();
			int Size = input.length();
			String[] n =new String[30];
			///¶ñðO©çÉn[i]ÌzñÉãü
			for(int i=0;i<Size;i++)
			{
				n[i] = input.substring(i,i+1);
			}
			///¶ñðtÅoÍ
			for(int i=(Size-1);i>-1;i--)
			{
				if(i==0)
					System.out.println(n[i]);
				else
					System.out.print(n[i]);
			}
	}
} import java.util.Scanner; Scanner java.util public class Main 
{

	public static void main(String[] args) 
	{
		// TODO ©®¶¬³ê½\bhEX^u

		Scanner sc = new Scanner(System.in);
			String input = sc.nextLine();
			int Size = input.length();
			String[] n =new String[30];
			///¶ñðO©çÉn[i]ÌzñÉãü
			for(int i=0;i<Size;i++)
			{
				n[i] = input.substring(i,i+1);
			}
			///¶ñðtÅoÍ
			for(int i=(Size-1);i>-1;i--)
			{
				if(i==0)
					System.out.println(n[i]);
				else
					System.out.print(n[i]);
			}
	}
} Main public static void main(String[] args) 
	{
		// TODO ©®¶¬³ê½\bhEX^u

		Scanner sc = new Scanner(System.in);
			String input = sc.nextLine();
			int Size = input.length();
			String[] n =new String[30];
			///¶ñðO©çÉn[i]ÌzñÉãü
			for(int i=0;i<Size;i++)
			{
				n[i] = input.substring(i,i+1);
			}
			///¶ñðtÅoÍ
			for(int i=(Size-1);i>-1;i--)
			{
				if(i==0)
					System.out.println(n[i]);
				else
					System.out.print(n[i]);
			}
	} main {
		// TODO ©®¶¬³ê½\bhEX^u

		Scanner sc = new Scanner(System.in);
			String input = sc.nextLine();
			int Size = input.length();
			String[] n =new String[30];
			///¶ñðO©çÉn[i]ÌzñÉãü
			for(int i=0;i<Size;i++)
			{
				n[i] = input.substring(i,i+1);
			}
			///¶ñðtÅoÍ
			for(int i=(Size-1);i>-1;i--)
			{
				if(i==0)
					System.out.println(n[i]);
				else
					System.out.print(n[i]);
			}
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String input = sc.nextLine(); input sc.nextLine() sc.nextLine sc int Size = input.length(); Size input.length() input.length input String[] n =new String[30]; n new String[30] 30 for(int i=0;i<Size;i++)
			{
				n[i] = input.substring(i,i+1);
			} int i=0; int i=0; i 0 i<Size i Size i++ i++ i {
				n[i] = input.substring(i,i+1);
			} {
				n[i] = input.substring(i,i+1);
			} n[i] = input.substring(i,i+1) n[i] n i input.substring(i,i+1) input.substring input i i+1 i 1 for(int i=(Size-1);i>-1;i--)
			{
				if(i==0)
					System.out.println(n[i]);
				else
					System.out.print(n[i]);
			} int i=(Size-1); int i=(Size-1); i (Size-1) Size 1 i>-1 i -1 1 i-- i-- i {
				if(i==0)
					System.out.println(n[i]);
				else
					System.out.print(n[i]);
			} {
				if(i==0)
					System.out.println(n[i]);
				else
					System.out.print(n[i]);
			} if(i==0)
					System.out.println(n[i]);
				else
					System.out.print(n[i]); i==0 i 0 System.out.println(n[i]) System.out.println System.out System System.out n[i] n i System.out.print(n[i]) System.out.print System.out System System.out n[i] n i String[] args args public class Main 
{

	public static void main(String[] args) 
	{
		// TODO ©®¶¬³ê½\bhEX^u

		Scanner sc = new Scanner(System.in);
			String input = sc.nextLine();
			int Size = input.length();
			String[] n =new String[30];
			///¶ñðO©çÉn[i]ÌzñÉãü
			for(int i=0;i<Size;i++)
			{
				n[i] = input.substring(i,i+1);
			}
			///¶ñðtÅoÍ
			for(int i=(Size-1);i>-1;i--)
			{
				if(i==0)
					System.out.println(n[i]);
				else
					System.out.print(n[i]);
			}
	}
} public class Main 
{

	public static void main(String[] args) 
	{
		// TODO ©®¶¬³ê½\bhEX^u

		Scanner sc = new Scanner(System.in);
			String input = sc.nextLine();
			int Size = input.length();
			String[] n =new String[30];
			///¶ñðO©çÉn[i]ÌzñÉãü
			for(int i=0;i<Size;i++)
			{
				n[i] = input.substring(i,i+1);
			}
			///¶ñðtÅoÍ
			for(int i=(Size-1);i>-1;i--)
			{
				if(i==0)
					System.out.println(n[i]);
				else
					System.out.print(n[i]);
			}
	}
} Main
import java.util.Scanner;


public class Main 
{

	public static void main(String[] args) 
	{
		// TODO ©®¶¬³ê½\bhEX^u

		Scanner sc = new Scanner(System.in);
			String input = sc.nextLine();
			int Size = input.length();
			String[] n =new String[30];
			///¶ñðO©çÉn[i]ÌzñÉãü
			for(int i=0;i<Size;i++)
			{
				n[i] = input.substring(i,i+1);
			}
			///¶ñðtÅoÍ
			for(int i=(Size-1);i>-1;i--)
			{
				if(i==0)
					System.out.println(n[i]);
				else
					System.out.print(n[i]);
			}
	}
}