import java.util.*;

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

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