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