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));
		StringBuilder builder = new StringBuilder(bufferedReader.readLine());
		System.out.println(builder.reverse());
	}
} 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));
		StringBuilder builder = new StringBuilder(bufferedReader.readLine());
		System.out.println(builder.reverse());
	}
} Main /**
	 * AOJ 0006 Reverse Sequence
	 */
	public static void main(String[] args) throws IOException {
		BufferedReader bufferedReader = new BufferedReader(
				new InputStreamReader(System.in));
		StringBuilder builder = new StringBuilder(bufferedReader.readLine());
		System.out.println(builder.reverse());
	} main {
		BufferedReader bufferedReader = new BufferedReader(
				new InputStreamReader(System.in));
		StringBuilder builder = new StringBuilder(bufferedReader.readLine());
		System.out.println(builder.reverse());
	} BufferedReader bufferedReader = new BufferedReader(
				new InputStreamReader(System.in)); bufferedReader new BufferedReader(
				new InputStreamReader(System.in)) StringBuilder builder = new StringBuilder(bufferedReader.readLine()); builder new StringBuilder(bufferedReader.readLine()) System.out.println(builder.reverse()) System.out.println System.out System System.out builder.reverse() builder.reverse 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));
		StringBuilder builder = new StringBuilder(bufferedReader.readLine());
		System.out.println(builder.reverse());
	}
} public class Main {

	/**
	 * AOJ 0006 Reverse Sequence
	 */
	public static void main(String[] args) throws IOException {
		BufferedReader bufferedReader = new BufferedReader(
				new InputStreamReader(System.in));
		StringBuilder builder = new StringBuilder(bufferedReader.readLine());
		System.out.println(builder.reverse());
	}
} 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));
		StringBuilder builder = new StringBuilder(bufferedReader.readLine());
		System.out.println(builder.reverse());
	}
}