import java.util.*;

class Main{
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		while(sc.hasNext()){
			System.out.println(new StringBuffer(sc.next()).reverse().toString());
		}
	}
} import java.util.*; util.* java class Main{
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		while(sc.hasNext()){
			System.out.println(new StringBuffer(sc.next()).reverse().toString());
		}
	}
} Main public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		while(sc.hasNext()){
			System.out.println(new StringBuffer(sc.next()).reverse().toString());
		}
	} main {
		Scanner sc = new Scanner(System.in);
		while(sc.hasNext()){
			System.out.println(new StringBuffer(sc.next()).reverse().toString());
		}
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) while(sc.hasNext()){
			System.out.println(new StringBuffer(sc.next()).reverse().toString());
		} sc.hasNext() sc.hasNext sc {
			System.out.println(new StringBuffer(sc.next()).reverse().toString());
		} System.out.println(new StringBuffer(sc.next()).reverse().toString()) System.out.println System.out System System.out new StringBuffer(sc.next()).reverse().toString() new StringBuffer(sc.next()).reverse().toString new StringBuffer(sc.next()).reverse() new StringBuffer(sc.next()).reverse new StringBuffer(sc.next()) String[] args args
import java.util.*;

class Main{
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		while(sc.hasNext()){
			System.out.println(new StringBuffer(sc.next()).reverse().toString());
		}
	}
}