import java.io.*;

class Main {
	public static void main (String[] args) throws IOException {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String str = br.readLine();
		while (str != null) {
			StringBuffer strBuffer = new StringBuffer(str);
			str = strBuffer.reverse().toString();
			System.out.println(str);
			str = br.readLine();
		}
	}
} import java.io.*; io.* java class Main {
	public static void main (String[] args) throws IOException {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String str = br.readLine();
		while (str != null) {
			StringBuffer strBuffer = new StringBuffer(str);
			str = strBuffer.reverse().toString();
			System.out.println(str);
			str = br.readLine();
		}
	}
} Main public static void main (String[] args) throws IOException {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String str = br.readLine();
		while (str != null) {
			StringBuffer strBuffer = new StringBuffer(str);
			str = strBuffer.reverse().toString();
			System.out.println(str);
			str = br.readLine();
		}
	} main {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String str = br.readLine();
		while (str != null) {
			StringBuffer strBuffer = new StringBuffer(str);
			str = strBuffer.reverse().toString();
			System.out.println(str);
			str = br.readLine();
		}
	} BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) String str = br.readLine(); str br.readLine() br.readLine br while (str != null) {
			StringBuffer strBuffer = new StringBuffer(str);
			str = strBuffer.reverse().toString();
			System.out.println(str);
			str = br.readLine();
		} str != null str null {
			StringBuffer strBuffer = new StringBuffer(str);
			str = strBuffer.reverse().toString();
			System.out.println(str);
			str = br.readLine();
		} StringBuffer strBuffer = new StringBuffer(str); strBuffer new StringBuffer(str) str = strBuffer.reverse().toString() str strBuffer.reverse().toString() strBuffer.reverse().toString strBuffer.reverse() strBuffer.reverse strBuffer System.out.println(str) System.out.println System.out System System.out str str = br.readLine() str br.readLine() br.readLine br String[] args args
import java.io.*;

class Main {
	public static void main (String[] args) throws IOException {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String str = br.readLine();
		while (str != null) {
			StringBuffer strBuffer = new StringBuffer(str);
			str = strBuffer.reverse().toString();
			System.out.println(str);
			str = br.readLine();
		}
	}
}