import java.util.*;

public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		while (sc.hasNextLine()) {
			String reverse = sc.nextLine();
			char[] a = reverse.toCharArray();
			char[] b = new char[a.length];
			int j = 0;
			for (int i = a.length - 1; i >= 0; i--) {
				b[j] = a[i];
				j++;
			}
			System.out.println(b);
		}
	}
} import java.util.*; util.* java public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		while (sc.hasNextLine()) {
			String reverse = sc.nextLine();
			char[] a = reverse.toCharArray();
			char[] b = new char[a.length];
			int j = 0;
			for (int i = a.length - 1; i >= 0; i--) {
				b[j] = a[i];
				j++;
			}
			System.out.println(b);
		}
	}
} Main public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		while (sc.hasNextLine()) {
			String reverse = sc.nextLine();
			char[] a = reverse.toCharArray();
			char[] b = new char[a.length];
			int j = 0;
			for (int i = a.length - 1; i >= 0; i--) {
				b[j] = a[i];
				j++;
			}
			System.out.println(b);
		}
	} main {
		Scanner sc = new Scanner(System.in);
		while (sc.hasNextLine()) {
			String reverse = sc.nextLine();
			char[] a = reverse.toCharArray();
			char[] b = new char[a.length];
			int j = 0;
			for (int i = a.length - 1; i >= 0; i--) {
				b[j] = a[i];
				j++;
			}
			System.out.println(b);
		}
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) while (sc.hasNextLine()) {
			String reverse = sc.nextLine();
			char[] a = reverse.toCharArray();
			char[] b = new char[a.length];
			int j = 0;
			for (int i = a.length - 1; i >= 0; i--) {
				b[j] = a[i];
				j++;
			}
			System.out.println(b);
		} sc.hasNextLine() sc.hasNextLine sc {
			String reverse = sc.nextLine();
			char[] a = reverse.toCharArray();
			char[] b = new char[a.length];
			int j = 0;
			for (int i = a.length - 1; i >= 0; i--) {
				b[j] = a[i];
				j++;
			}
			System.out.println(b);
		} String reverse = sc.nextLine(); reverse sc.nextLine() sc.nextLine sc char[] a = reverse.toCharArray(); a reverse.toCharArray() reverse.toCharArray reverse char[] b = new char[a.length]; b new char[a.length] a.length a a.length int j = 0; j 0 for (int i = a.length - 1; i >= 0; i--) {
				b[j] = a[i];
				j++;
			} int i = a.length - 1; int i = a.length - 1; i a.length - 1 a.length a a.length 1 i >= 0 i 0 i-- i-- i {
				b[j] = a[i];
				j++;
			} {
				b[j] = a[i];
				j++;
			} b[j] = a[i] b[j] b j a[i] a i j++ j System.out.println(b) System.out.println System.out System System.out b String[] args args public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		while (sc.hasNextLine()) {
			String reverse = sc.nextLine();
			char[] a = reverse.toCharArray();
			char[] b = new char[a.length];
			int j = 0;
			for (int i = a.length - 1; i >= 0; i--) {
				b[j] = a[i];
				j++;
			}
			System.out.println(b);
		}
	}
} public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		while (sc.hasNextLine()) {
			String reverse = sc.nextLine();
			char[] a = reverse.toCharArray();
			char[] b = new char[a.length];
			int j = 0;
			for (int i = a.length - 1; i >= 0; i--) {
				b[j] = a[i];
				j++;
			}
			System.out.println(b);
		}
	}
} Main
import java.util.*;

public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		while (sc.hasNextLine()) {
			String reverse = sc.nextLine();
			char[] a = reverse.toCharArray();
			char[] b = new char[a.length];
			int j = 0;
			for (int i = a.length - 1; i >= 0; i--) {
				b[j] = a[i];
				j++;
			}
			System.out.println(b);
		}
	}
}