
import java.util.Vector;

class Main{
	public static void main(String[] av){
		Vector<StringBuffer> vec = new Vector<StringBuffer>();
		java.util.Scanner sc = new java.util.Scanner(System.in);
		while( sc.hasNext() ){
			vec.add( new StringBuffer(sc.next()) );
		}
		for ( StringBuffer str : vec ){
			System.out.println( str.reverse() );
		}
	}
} import java.util.Vector; Vector java.util class Main{
	public static void main(String[] av){
		Vector<StringBuffer> vec = new Vector<StringBuffer>();
		java.util.Scanner sc = new java.util.Scanner(System.in);
		while( sc.hasNext() ){
			vec.add( new StringBuffer(sc.next()) );
		}
		for ( StringBuffer str : vec ){
			System.out.println( str.reverse() );
		}
	}
} Main public static void main(String[] av){
		Vector<StringBuffer> vec = new Vector<StringBuffer>();
		java.util.Scanner sc = new java.util.Scanner(System.in);
		while( sc.hasNext() ){
			vec.add( new StringBuffer(sc.next()) );
		}
		for ( StringBuffer str : vec ){
			System.out.println( str.reverse() );
		}
	} main {
		Vector<StringBuffer> vec = new Vector<StringBuffer>();
		java.util.Scanner sc = new java.util.Scanner(System.in);
		while( sc.hasNext() ){
			vec.add( new StringBuffer(sc.next()) );
		}
		for ( StringBuffer str : vec ){
			System.out.println( str.reverse() );
		}
	} Vector<StringBuffer> vec = new Vector<StringBuffer>(); vec new Vector<StringBuffer>() java.util.Scanner sc = new java.util.Scanner(System.in); sc new java.util.Scanner(System.in) while( sc.hasNext() ){
			vec.add( new StringBuffer(sc.next()) );
		} sc.hasNext() sc.hasNext sc {
			vec.add( new StringBuffer(sc.next()) );
		} vec.add( new StringBuffer(sc.next()) ) vec.add vec new StringBuffer(sc.next()) for ( StringBuffer str : vec ){
			System.out.println( str.reverse() );
		} StringBuffer str vec {
			System.out.println( str.reverse() );
		} {
			System.out.println( str.reverse() );
		} System.out.println( str.reverse() ) System.out.println System.out System System.out str.reverse() str.reverse str String[] av av

import java.util.Vector;

class Main{
	public static void main(String[] av){
		Vector<StringBuffer> vec = new Vector<StringBuffer>();
		java.util.Scanner sc = new java.util.Scanner(System.in);
		while( sc.hasNext() ){
			vec.add( new StringBuffer(sc.next()) );
		}
		for ( StringBuffer str : vec ){
			System.out.println( str.reverse() );
		}
	}
}