import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		System.out.println(
		        new StringBuilder(
		                new Scanner(System.in).nextLine())
		                .reverse());
	}
} import java.util.Scanner; Scanner java.util public class Main {
	public static void main(String[] args) {
		System.out.println(
		        new StringBuilder(
		                new Scanner(System.in).nextLine())
		                .reverse());
	}
} Main public static void main(String[] args) {
		System.out.println(
		        new StringBuilder(
		                new Scanner(System.in).nextLine())
		                .reverse());
	} main {
		System.out.println(
		        new StringBuilder(
		                new Scanner(System.in).nextLine())
		                .reverse());
	} System.out.println(
		        new StringBuilder(
		                new Scanner(System.in).nextLine())
		                .reverse()) System.out.println System.out System System.out new StringBuilder(
		                new Scanner(System.in).nextLine())
		                .reverse() new StringBuilder(
		                new Scanner(System.in).nextLine())
		                .reverse new StringBuilder(
		                new Scanner(System.in).nextLine()) String[] args args public class Main {
	public static void main(String[] args) {
		System.out.println(
		        new StringBuilder(
		                new Scanner(System.in).nextLine())
		                .reverse());
	}
} public class Main {
	public static void main(String[] args) {
		System.out.println(
		        new StringBuilder(
		                new Scanner(System.in).nextLine())
		                .reverse());
	}
} Main
import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		System.out.println(
		        new StringBuilder(
		                new Scanner(System.in).nextLine())
		                .reverse());
	}
}