

import java.util.Scanner;

public class Main {

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

		char[] c = sc.next().toCharArray();

		for (int i = c.length - 1; i >= 0; i--) {
			System.out.print(c[i]);
		}
		System.out.println();

		sc.close();
	}

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

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

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

		char[] c = sc.next().toCharArray();

		for (int i = c.length - 1; i >= 0; i--) {
			System.out.print(c[i]);
		}
		System.out.println();

		sc.close();
	}

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

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

		char[] c = sc.next().toCharArray();

		for (int i = c.length - 1; i >= 0; i--) {
			System.out.print(c[i]);
		}
		System.out.println();

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

		char[] c = sc.next().toCharArray();

		for (int i = c.length - 1; i >= 0; i--) {
			System.out.print(c[i]);
		}
		System.out.println();

		sc.close();
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) char[] c = sc.next().toCharArray(); c sc.next().toCharArray() sc.next().toCharArray sc.next() sc.next sc for (int i = c.length - 1; i >= 0; i--) {
			System.out.print(c[i]);
		} int i = c.length - 1; int i = c.length - 1; i c.length - 1 c.length c c.length 1 i >= 0 i 0 i-- i-- i {
			System.out.print(c[i]);
		} {
			System.out.print(c[i]);
		} System.out.print(c[i]) System.out.print System.out System System.out c[i] c i System.out.println() System.out.println System.out System System.out sc.close() sc.close sc 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 {

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

		char[] c = sc.next().toCharArray();

		for (int i = c.length - 1; i >= 0; i--) {
			System.out.print(c[i]);
		}
		System.out.println();

		sc.close();
	}

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

} public class Main {

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

		char[] c = sc.next().toCharArray();

		for (int i = c.length - 1; i >= 0; i--) {
			System.out.print(c[i]);
		}
		System.out.println();

		sc.close();
	}

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

} Main


import java.util.Scanner;

public class Main {

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

		char[] c = sc.next().toCharArray();

		for (int i = c.length - 1; i >= 0; i--) {
			System.out.print(c[i]);
		}
		System.out.println();

		sc.close();
	}

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

}