import java.util.Scanner;

public class Main {

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

		while ((scan.hasNext())) {
			str = String.valueOf(scan.next());
			char[] chars = str.toCharArray();
			for (int i = chars.length - 1; i >= 0; i--) {
				System.out.print(chars[i]);
			}
			System.out.println();
		}
	}
} import java.util.Scanner; Scanner java.util public class Main {

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

		while ((scan.hasNext())) {
			str = String.valueOf(scan.next());
			char[] chars = str.toCharArray();
			for (int i = chars.length - 1; i >= 0; i--) {
				System.out.print(chars[i]);
			}
			System.out.println();
		}
	}
} Main public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		String str;

		while ((scan.hasNext())) {
			str = String.valueOf(scan.next());
			char[] chars = str.toCharArray();
			for (int i = chars.length - 1; i >= 0; i--) {
				System.out.print(chars[i]);
			}
			System.out.println();
		}
	} main {
		Scanner scan = new Scanner(System.in);
		String str;

		while ((scan.hasNext())) {
			str = String.valueOf(scan.next());
			char[] chars = str.toCharArray();
			for (int i = chars.length - 1; i >= 0; i--) {
				System.out.print(chars[i]);
			}
			System.out.println();
		}
	} Scanner scan = new Scanner(System.in); scan new Scanner(System.in) String str; str while ((scan.hasNext())) {
			str = String.valueOf(scan.next());
			char[] chars = str.toCharArray();
			for (int i = chars.length - 1; i >= 0; i--) {
				System.out.print(chars[i]);
			}
			System.out.println();
		} (scan.hasNext()) scan.hasNext scan {
			str = String.valueOf(scan.next());
			char[] chars = str.toCharArray();
			for (int i = chars.length - 1; i >= 0; i--) {
				System.out.print(chars[i]);
			}
			System.out.println();
		} str = String.valueOf(scan.next()) str String.valueOf(scan.next()) String.valueOf String scan.next() scan.next scan char[] chars = str.toCharArray(); chars str.toCharArray() str.toCharArray str for (int i = chars.length - 1; i >= 0; i--) {
				System.out.print(chars[i]);
			} int i = chars.length - 1; int i = chars.length - 1; i chars.length - 1 chars.length chars chars.length 1 i >= 0 i 0 i-- i-- i {
				System.out.print(chars[i]);
			} {
				System.out.print(chars[i]);
			} System.out.print(chars[i]) System.out.print System.out System System.out chars[i] chars i System.out.println() System.out.println System.out System System.out String[] args args public class Main {

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

		while ((scan.hasNext())) {
			str = String.valueOf(scan.next());
			char[] chars = str.toCharArray();
			for (int i = chars.length - 1; i >= 0; i--) {
				System.out.print(chars[i]);
			}
			System.out.println();
		}
	}
} public class Main {

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

		while ((scan.hasNext())) {
			str = String.valueOf(scan.next());
			char[] chars = str.toCharArray();
			for (int i = chars.length - 1; i >= 0; i--) {
				System.out.print(chars[i]);
			}
			System.out.println();
		}
	}
} Main
import java.util.Scanner;

public class Main {

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

		while ((scan.hasNext())) {
			str = String.valueOf(scan.next());
			char[] chars = str.toCharArray();
			for (int i = chars.length - 1; i >= 0; i--) {
				System.out.print(chars[i]);
			}
			System.out.println();
		}
	}
}