import java.util.Scanner;

public class Main {

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

		StringBuilder inputData = new StringBuilder(sc.next());

		System.out.println(inputData.reverse());
	}
} import java.util.Scanner; Scanner java.util public class Main {

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

		StringBuilder inputData = new StringBuilder(sc.next());

		System.out.println(inputData.reverse());
	}
} Main public static void main(String[] args) {
		@SuppressWarnings("resource")
		Scanner sc = new Scanner(System.in);

		StringBuilder inputData = new StringBuilder(sc.next());

		System.out.println(inputData.reverse());
	} main {
		@SuppressWarnings("resource")
		Scanner sc = new Scanner(System.in);

		StringBuilder inputData = new StringBuilder(sc.next());

		System.out.println(inputData.reverse());
	} @SuppressWarnings("resource")
		Scanner sc = new Scanner(System.in); sc new Scanner(System.in) StringBuilder inputData = new StringBuilder(sc.next()); inputData new StringBuilder(sc.next()) System.out.println(inputData.reverse()) System.out.println System.out System System.out inputData.reverse() inputData.reverse inputData String[] args args public class Main {

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

		StringBuilder inputData = new StringBuilder(sc.next());

		System.out.println(inputData.reverse());
	}
} public class Main {

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

		StringBuilder inputData = new StringBuilder(sc.next());

		System.out.println(inputData.reverse());
	}
} Main
import java.util.Scanner;

public class Main {

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

		StringBuilder inputData = new StringBuilder(sc.next());

		System.out.println(inputData.reverse());
	}
}