import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

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

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