import java.util.*;
public class Main {
	static Scanner sc = new Scanner(System.in);
	static String in;
	public static void main(String[] args) {
		while(read()){
			solve();
		}
	}
	
	static boolean read(){
		if(!sc.hasNext())return false;
		in = sc.next();
		return true;
	}
	
	static void solve(){
		StringBuffer sb = new StringBuffer(in);
		System.out.println(sb.reverse());
	}
} import java.util.*; util.* java public class Main {
	static Scanner sc = new Scanner(System.in);
	static String in;
	public static void main(String[] args) {
		while(read()){
			solve();
		}
	}
	
	static boolean read(){
		if(!sc.hasNext())return false;
		in = sc.next();
		return true;
	}
	
	static void solve(){
		StringBuffer sb = new StringBuffer(in);
		System.out.println(sb.reverse());
	}
} Main static Scanner sc = new Scanner(System.in); sc new Scanner(System.in) static String in; in public static void main(String[] args) {
		while(read()){
			solve();
		}
	} main {
		while(read()){
			solve();
		}
	} while(read()){
			solve();
		} read() read {
			solve();
		} solve() solve String[] args args static boolean read(){
		if(!sc.hasNext())return false;
		in = sc.next();
		return true;
	} read {
		if(!sc.hasNext())return false;
		in = sc.next();
		return true;
	} if(!sc.hasNext())return false; !sc.hasNext() sc.hasNext() sc.hasNext sc return false; false in = sc.next() in sc.next() sc.next sc return true; true static void solve(){
		StringBuffer sb = new StringBuffer(in);
		System.out.println(sb.reverse());
	} solve {
		StringBuffer sb = new StringBuffer(in);
		System.out.println(sb.reverse());
	} StringBuffer sb = new StringBuffer(in); sb new StringBuffer(in) System.out.println(sb.reverse()) System.out.println System.out System System.out sb.reverse() sb.reverse sb public class Main {
	static Scanner sc = new Scanner(System.in);
	static String in;
	public static void main(String[] args) {
		while(read()){
			solve();
		}
	}
	
	static boolean read(){
		if(!sc.hasNext())return false;
		in = sc.next();
		return true;
	}
	
	static void solve(){
		StringBuffer sb = new StringBuffer(in);
		System.out.println(sb.reverse());
	}
} public class Main {
	static Scanner sc = new Scanner(System.in);
	static String in;
	public static void main(String[] args) {
		while(read()){
			solve();
		}
	}
	
	static boolean read(){
		if(!sc.hasNext())return false;
		in = sc.next();
		return true;
	}
	
	static void solve(){
		StringBuffer sb = new StringBuffer(in);
		System.out.println(sb.reverse());
	}
} Main
import java.util.*;
public class Main {
	static Scanner sc = new Scanner(System.in);
	static String in;
	public static void main(String[] args) {
		while(read()){
			solve();
		}
	}
	
	static boolean read(){
		if(!sc.hasNext())return false;
		in = sc.next();
		return true;
	}
	
	static void solve(){
		StringBuffer sb = new StringBuffer(in);
		System.out.println(sb.reverse());
	}
}