import java.util.Scanner;


public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);

		System.out.println((new StringBuilder(sc.nextLine()).reverse().toString()));

	}
} import java.util.Scanner; Scanner java.util public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);

		System.out.println((new StringBuilder(sc.nextLine()).reverse().toString()));

	}
} Main public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);

		System.out.println((new StringBuilder(sc.nextLine()).reverse().toString()));

	} main {
		Scanner sc = new Scanner(System.in);

		System.out.println((new StringBuilder(sc.nextLine()).reverse().toString()));

	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) System.out.println((new StringBuilder(sc.nextLine()).reverse().toString())) System.out.println System.out System System.out (new StringBuilder(sc.nextLine()).reverse().toString()) new StringBuilder(sc.nextLine()).reverse().toString new StringBuilder(sc.nextLine()).reverse() new StringBuilder(sc.nextLine()).reverse new StringBuilder(sc.nextLine()) String[] args args public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);

		System.out.println((new StringBuilder(sc.nextLine()).reverse().toString()));

	}
} public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);

		System.out.println((new StringBuilder(sc.nextLine()).reverse().toString()));

	}
} Main
import java.util.Scanner;


public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);

		System.out.println((new StringBuilder(sc.nextLine()).reverse().toString()));

	}
}