import java.util.Scanner;

public class Main {
	static Scanner sc = new Scanner(System.in);

	public static void main(String[] main) {
		String str = sc.next();

		String reversed = new StringBuilder(str).reverse().toString();
		System.out.println(reversed);
	}
} import java.util.Scanner; Scanner java.util public class Main {
	static Scanner sc = new Scanner(System.in);

	public static void main(String[] main) {
		String str = sc.next();

		String reversed = new StringBuilder(str).reverse().toString();
		System.out.println(reversed);
	}
} Main static Scanner sc = new Scanner(System.in); sc new Scanner(System.in) public static void main(String[] main) {
		String str = sc.next();

		String reversed = new StringBuilder(str).reverse().toString();
		System.out.println(reversed);
	} main {
		String str = sc.next();

		String reversed = new StringBuilder(str).reverse().toString();
		System.out.println(reversed);
	} String str = sc.next(); str sc.next() sc.next sc String reversed = new StringBuilder(str).reverse().toString(); reversed new StringBuilder(str).reverse().toString() new StringBuilder(str).reverse().toString new StringBuilder(str).reverse() new StringBuilder(str).reverse new StringBuilder(str) System.out.println(reversed) System.out.println System.out System System.out reversed String[] main main public class Main {
	static Scanner sc = new Scanner(System.in);

	public static void main(String[] main) {
		String str = sc.next();

		String reversed = new StringBuilder(str).reverse().toString();
		System.out.println(reversed);
	}
} public class Main {
	static Scanner sc = new Scanner(System.in);

	public static void main(String[] main) {
		String str = sc.next();

		String reversed = new StringBuilder(str).reverse().toString();
		System.out.println(reversed);
	}
} Main
import java.util.Scanner;

public class Main {
	static Scanner sc = new Scanner(System.in);

	public static void main(String[] main) {
		String str = sc.next();

		String reversed = new StringBuilder(str).reverse().toString();
		System.out.println(reversed);
	}
}