import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		Scanner s = new Scanner(System.in);
		char[] str = s.next().toCharArray();
		for(int i = str.length - 1; 0 <= i; --i) {
			System.out.print(str[i]);
		}
		System.out.println();
	}
} import java.util.Scanner; Scanner java.util public class Main {
	public static void main(String[] args) {
		Scanner s = new Scanner(System.in);
		char[] str = s.next().toCharArray();
		for(int i = str.length - 1; 0 <= i; --i) {
			System.out.print(str[i]);
		}
		System.out.println();
	}
} Main public static void main(String[] args) {
		Scanner s = new Scanner(System.in);
		char[] str = s.next().toCharArray();
		for(int i = str.length - 1; 0 <= i; --i) {
			System.out.print(str[i]);
		}
		System.out.println();
	} main {
		Scanner s = new Scanner(System.in);
		char[] str = s.next().toCharArray();
		for(int i = str.length - 1; 0 <= i; --i) {
			System.out.print(str[i]);
		}
		System.out.println();
	} Scanner s = new Scanner(System.in); s new Scanner(System.in) char[] str = s.next().toCharArray(); str s.next().toCharArray() s.next().toCharArray s.next() s.next s for(int i = str.length - 1; 0 <= i; --i) {
			System.out.print(str[i]);
		} int i = str.length - 1; int i = str.length - 1; i str.length - 1 str.length str str.length 1 0 <= i 0 i --i --i i {
			System.out.print(str[i]);
		} {
			System.out.print(str[i]);
		} System.out.print(str[i]) System.out.print System.out System System.out str[i] str 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 s = new Scanner(System.in);
		char[] str = s.next().toCharArray();
		for(int i = str.length - 1; 0 <= i; --i) {
			System.out.print(str[i]);
		}
		System.out.println();
	}
} public class Main {
	public static void main(String[] args) {
		Scanner s = new Scanner(System.in);
		char[] str = s.next().toCharArray();
		for(int i = str.length - 1; 0 <= i; --i) {
			System.out.print(str[i]);
		}
		System.out.println();
	}
} Main
import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		Scanner s = new Scanner(System.in);
		char[] str = s.next().toCharArray();
		for(int i = str.length - 1; 0 <= i; --i) {
			System.out.print(str[i]);
		}
		System.out.println();
	}
}