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

class Main {

	public static void main(String[] args)
			throws IOException {
		BufferedReader br = new BufferedReader(
				new InputStreamReader(System.in));
		String s = br.readLine();
		char[] array = new char[s.length()];

		int i = 0;
		while (i < s.length()) {
			array[i] = s.charAt(i);
			++i;
		}

		while (--i >= 0) {
			System.out.print(array[i]);
		}

		System.out.println("");
	}
} import java.io.BufferedReader; BufferedReader java.io import java.io.IOException; IOException java.io import java.io.InputStreamReader; InputStreamReader java.io class Main {

	public static void main(String[] args)
			throws IOException {
		BufferedReader br = new BufferedReader(
				new InputStreamReader(System.in));
		String s = br.readLine();
		char[] array = new char[s.length()];

		int i = 0;
		while (i < s.length()) {
			array[i] = s.charAt(i);
			++i;
		}

		while (--i >= 0) {
			System.out.print(array[i]);
		}

		System.out.println("");
	}
} Main public static void main(String[] args)
			throws IOException {
		BufferedReader br = new BufferedReader(
				new InputStreamReader(System.in));
		String s = br.readLine();
		char[] array = new char[s.length()];

		int i = 0;
		while (i < s.length()) {
			array[i] = s.charAt(i);
			++i;
		}

		while (--i >= 0) {
			System.out.print(array[i]);
		}

		System.out.println("");
	} main {
		BufferedReader br = new BufferedReader(
				new InputStreamReader(System.in));
		String s = br.readLine();
		char[] array = new char[s.length()];

		int i = 0;
		while (i < s.length()) {
			array[i] = s.charAt(i);
			++i;
		}

		while (--i >= 0) {
			System.out.print(array[i]);
		}

		System.out.println("");
	} BufferedReader br = new BufferedReader(
				new InputStreamReader(System.in)); br new BufferedReader(
				new InputStreamReader(System.in)) String s = br.readLine(); s br.readLine() br.readLine br char[] array = new char[s.length()]; array new char[s.length()] s.length() s.length s int i = 0; i 0 while (i < s.length()) {
			array[i] = s.charAt(i);
			++i;
		} i < s.length() i s.length() s.length s {
			array[i] = s.charAt(i);
			++i;
		} array[i] = s.charAt(i) array[i] array i s.charAt(i) s.charAt s i ++i i while (--i >= 0) {
			System.out.print(array[i]);
		} --i >= 0 --i i 0 {
			System.out.print(array[i]);
		} System.out.print(array[i]) System.out.print System.out System System.out array[i] array i System.out.println("") System.out.println System.out System System.out "" String[] args args
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

class Main {

	public static void main(String[] args)
			throws IOException {
		BufferedReader br = new BufferedReader(
				new InputStreamReader(System.in));
		String s = br.readLine();
		char[] array = new char[s.length()];

		int i = 0;
		while (i < s.length()) {
			array[i] = s.charAt(i);
			++i;
		}

		while (--i >= 0) {
			System.out.print(array[i]);
		}

		System.out.println("");
	}
}