import java.util.Scanner;

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

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