import java.util.Scanner;

public class Main
{
	public static void main(String[] args)
	{
		Scanner cin = new Scanner(System.in);

		char tch;
		char[] str = new char[32];
		str = cin.next().toCharArray();
		for(int i=0,j=str.length-1; i<j; i++,j--)
		{
			tch=str[i]; str[i]=str[j]; str[j]=tch;
		}
		
		System.out.println(str);
	}
} import java.util.Scanner; Scanner java.util public class Main
{
	public static void main(String[] args)
	{
		Scanner cin = new Scanner(System.in);

		char tch;
		char[] str = new char[32];
		str = cin.next().toCharArray();
		for(int i=0,j=str.length-1; i<j; i++,j--)
		{
			tch=str[i]; str[i]=str[j]; str[j]=tch;
		}
		
		System.out.println(str);
	}
} Main public static void main(String[] args)
	{
		Scanner cin = new Scanner(System.in);

		char tch;
		char[] str = new char[32];
		str = cin.next().toCharArray();
		for(int i=0,j=str.length-1; i<j; i++,j--)
		{
			tch=str[i]; str[i]=str[j]; str[j]=tch;
		}
		
		System.out.println(str);
	} main {
		Scanner cin = new Scanner(System.in);

		char tch;
		char[] str = new char[32];
		str = cin.next().toCharArray();
		for(int i=0,j=str.length-1; i<j; i++,j--)
		{
			tch=str[i]; str[i]=str[j]; str[j]=tch;
		}
		
		System.out.println(str);
	} Scanner cin = new Scanner(System.in); cin new Scanner(System.in) char tch; tch char[] str = new char[32]; str new char[32] 32 str = cin.next().toCharArray() str cin.next().toCharArray() cin.next().toCharArray cin.next() cin.next cin for(int i=0,j=str.length-1; i<j; i++,j--)
		{
			tch=str[i]; str[i]=str[j]; str[j]=tch;
		} int i=0,j=str.length-1; int i=0 i 0 j=str.length-1; j str.length-1 str.length str str.length 1 i<j i j i++,j-- i++ i j-- j {
			tch=str[i]; str[i]=str[j]; str[j]=tch;
		} {
			tch=str[i]; str[i]=str[j]; str[j]=tch;
		} tch=str[i] tch str[i] str i str[i]=str[j] str[i] str i str[j] str j str[j]=tch str[j] str j tch System.out.println(str) System.out.println System.out System System.out str String[] args args public class Main
{
	public static void main(String[] args)
	{
		Scanner cin = new Scanner(System.in);

		char tch;
		char[] str = new char[32];
		str = cin.next().toCharArray();
		for(int i=0,j=str.length-1; i<j; i++,j--)
		{
			tch=str[i]; str[i]=str[j]; str[j]=tch;
		}
		
		System.out.println(str);
	}
} public class Main
{
	public static void main(String[] args)
	{
		Scanner cin = new Scanner(System.in);

		char tch;
		char[] str = new char[32];
		str = cin.next().toCharArray();
		for(int i=0,j=str.length-1; i<j; i++,j--)
		{
			tch=str[i]; str[i]=str[j]; str[j]=tch;
		}
		
		System.out.println(str);
	}
} Main
import java.util.Scanner;

public class Main
{
	public static void main(String[] args)
	{
		Scanner cin = new Scanner(System.in);

		char tch;
		char[] str = new char[32];
		str = cin.next().toCharArray();
		for(int i=0,j=str.length-1; i<j; i++,j--)
		{
			tch=str[i]; str[i]=str[j]; str[j]=tch;
		}
		
		System.out.println(str);
	}
}