import java.util.Scanner;

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

		StringBuilder s = new StringBuilder(sc.next());
		System.out.println(s.reverse());
	}

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

		StringBuilder s = new StringBuilder(sc.next());
		System.out.println(s.reverse());
	}

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

		StringBuilder s = new StringBuilder(sc.next());
		System.out.println(s.reverse());
	} run {
		Scanner sc = new Scanner(System.in);

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

		StringBuilder s = new StringBuilder(sc.next());
		System.out.println(s.reverse());
	}

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

		StringBuilder s = new StringBuilder(sc.next());
		System.out.println(s.reverse());
	}

	public static void main(String[] args) {
		new Main().run();
	}
} Main
import java.util.Scanner;

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

		StringBuilder s = new StringBuilder(sc.next());
		System.out.println(s.reverse());
	}

	public static void main(String[] args) {
		new Main().run();
	}
}