import java.util.Scanner;

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

public class Main {
	public static void main(String[] argv) {
		System.out.println((new StringBuffer((new Scanner(System.in)).next())).reverse());
	}
}