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

public class Main {

	/**
	 * AOJ 0006 Reverse Sequence
	 */
	public static void main(String[] args) throws IOException {
		BufferedReader bufferedReader = new BufferedReader(
				new InputStreamReader(System.in));

		String input = bufferedReader.readLine();
		StringBuilder builder = new StringBuilder();
		for (int i = input.length() - 1; i >= 0; i--) {
			builder.append(input.charAt(i));
		}
		System.out.println(builder);
	}
} import java.io.BufferedReader; BufferedReader java.io import java.io.IOException; IOException java.io import java.io.InputStreamReader; InputStreamReader java.io public class Main {

	/**
	 * AOJ 0006 Reverse Sequence
	 */
	public static void main(String[] args) throws IOException {
		BufferedReader bufferedReader = new BufferedReader(
				new InputStreamReader(System.in));

		String input = bufferedReader.readLine();
		StringBuilder builder = new StringBuilder();
		for (int i = input.length() - 1; i >= 0; i--) {
			builder.append(input.charAt(i));
		}
		System.out.println(builder);
	}
} Main /**
	 * AOJ 0006 Reverse Sequence
	 */
	public static void main(String[] args) throws IOException {
		BufferedReader bufferedReader = new BufferedReader(
				new InputStreamReader(System.in));

		String input = bufferedReader.readLine();
		StringBuilder builder = new StringBuilder();
		for (int i = input.length() - 1; i >= 0; i--) {
			builder.append(input.charAt(i));
		}
		System.out.println(builder);
	} main {
		BufferedReader bufferedReader = new BufferedReader(
				new InputStreamReader(System.in));

		String input = bufferedReader.readLine();
		StringBuilder builder = new StringBuilder();
		for (int i = input.length() - 1; i >= 0; i--) {
			builder.append(input.charAt(i));
		}
		System.out.println(builder);
	} BufferedReader bufferedReader = new BufferedReader(
				new InputStreamReader(System.in)); bufferedReader new BufferedReader(
				new InputStreamReader(System.in)) String input = bufferedReader.readLine(); input bufferedReader.readLine() bufferedReader.readLine bufferedReader StringBuilder builder = new StringBuilder(); builder new StringBuilder() for (int i = input.length() - 1; i >= 0; i--) {
			builder.append(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 {
			builder.append(input.charAt(i));
		} {
			builder.append(input.charAt(i));
		} builder.append(input.charAt(i)) builder.append builder input.charAt(i) input.charAt input i System.out.println(builder) System.out.println System.out System System.out builder String[] args args public class Main {

	/**
	 * AOJ 0006 Reverse Sequence
	 */
	public static void main(String[] args) throws IOException {
		BufferedReader bufferedReader = new BufferedReader(
				new InputStreamReader(System.in));

		String input = bufferedReader.readLine();
		StringBuilder builder = new StringBuilder();
		for (int i = input.length() - 1; i >= 0; i--) {
			builder.append(input.charAt(i));
		}
		System.out.println(builder);
	}
} public class Main {

	/**
	 * AOJ 0006 Reverse Sequence
	 */
	public static void main(String[] args) throws IOException {
		BufferedReader bufferedReader = new BufferedReader(
				new InputStreamReader(System.in));

		String input = bufferedReader.readLine();
		StringBuilder builder = new StringBuilder();
		for (int i = input.length() - 1; i >= 0; i--) {
			builder.append(input.charAt(i));
		}
		System.out.println(builder);
	}
} Main
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

public class Main {

	/**
	 * AOJ 0006 Reverse Sequence
	 */
	public static void main(String[] args) throws IOException {
		BufferedReader bufferedReader = new BufferedReader(
				new InputStreamReader(System.in));

		String input = bufferedReader.readLine();
		StringBuilder builder = new StringBuilder();
		for (int i = input.length() - 1; i >= 0; i--) {
			builder.append(input.charAt(i));
		}
		System.out.println(builder);
	}
}