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

public class Main {

	/**
	 * @param args
	 * @throws IOException
	 */
	public static void main(String[] args) throws IOException {
		InputStreamReader is = new InputStreamReader(System.in);
		BufferedReader br = new BufferedReader(is);
		String input = br.readLine();
		for (int i = input.length() - 1; i > 0; i--) {
			System.out.print(input.charAt(i));
		}
		System.out.println(input.charAt(0));
	}
} import java.io.BufferedReader; BufferedReader java.io import java.io.IOException; IOException java.io import java.io.InputStreamReader; InputStreamReader java.io public class Main {

	/**
	 * @param args
	 * @throws IOException
	 */
	public static void main(String[] args) throws IOException {
		InputStreamReader is = new InputStreamReader(System.in);
		BufferedReader br = new BufferedReader(is);
		String input = br.readLine();
		for (int i = input.length() - 1; i > 0; i--) {
			System.out.print(input.charAt(i));
		}
		System.out.println(input.charAt(0));
	}
} Main /**
	 * @param args
	 * @throws IOException
	 */
	public static void main(String[] args) throws IOException {
		InputStreamReader is = new InputStreamReader(System.in);
		BufferedReader br = new BufferedReader(is);
		String input = br.readLine();
		for (int i = input.length() - 1; i > 0; i--) {
			System.out.print(input.charAt(i));
		}
		System.out.println(input.charAt(0));
	} main {
		InputStreamReader is = new InputStreamReader(System.in);
		BufferedReader br = new BufferedReader(is);
		String input = br.readLine();
		for (int i = input.length() - 1; i > 0; i--) {
			System.out.print(input.charAt(i));
		}
		System.out.println(input.charAt(0));
	} InputStreamReader is = new InputStreamReader(System.in); is new InputStreamReader(System.in) BufferedReader br = new BufferedReader(is); br new BufferedReader(is) String input = br.readLine(); input br.readLine() br.readLine br for (int i = input.length() - 1; i > 0; i--) {
			System.out.print(input.charAt(i));
		} int i = input.length() - 1; int i = input.length() - 1; i input.length() - 1 input.length() input.length input 1 i > 0 i 0 i-- i-- i {
			System.out.print(input.charAt(i));
		} {
			System.out.print(input.charAt(i));
		} System.out.print(input.charAt(i)) System.out.print System.out System System.out input.charAt(i) input.charAt input i System.out.println(input.charAt(0)) System.out.println System.out System System.out input.charAt(0) input.charAt input 0 String[] args args public class Main {

	/**
	 * @param args
	 * @throws IOException
	 */
	public static void main(String[] args) throws IOException {
		InputStreamReader is = new InputStreamReader(System.in);
		BufferedReader br = new BufferedReader(is);
		String input = br.readLine();
		for (int i = input.length() - 1; i > 0; i--) {
			System.out.print(input.charAt(i));
		}
		System.out.println(input.charAt(0));
	}
} public class Main {

	/**
	 * @param args
	 * @throws IOException
	 */
	public static void main(String[] args) throws IOException {
		InputStreamReader is = new InputStreamReader(System.in);
		BufferedReader br = new BufferedReader(is);
		String input = br.readLine();
		for (int i = input.length() - 1; i > 0; i--) {
			System.out.print(input.charAt(i));
		}
		System.out.println(input.charAt(0));
	}
} Main
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

public class Main {

	/**
	 * @param args
	 * @throws IOException
	 */
	public static void main(String[] args) throws IOException {
		InputStreamReader is = new InputStreamReader(System.in);
		BufferedReader br = new BufferedReader(is);
		String input = br.readLine();
		for (int i = input.length() - 1; i > 0; i--) {
			System.out.print(input.charAt(i));
		}
		System.out.println(input.charAt(0));
	}
}