import java.util.Scanner;

class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		while (sc.hasNext()) {
			StringBuffer str = new StringBuffer(sc.nextLine());
			String ret = new String();
			int i, length = str.length();
			for (i = 0; i < length; i++) {
				ret = ret + str.charAt(str.length() - 1);
				str.deleteCharAt(str.length() -1);
			}
			System.out.println(ret);
		}
	}
} import java.util.Scanner; Scanner java.util class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		while (sc.hasNext()) {
			StringBuffer str = new StringBuffer(sc.nextLine());
			String ret = new String();
			int i, length = str.length();
			for (i = 0; i < length; i++) {
				ret = ret + str.charAt(str.length() - 1);
				str.deleteCharAt(str.length() -1);
			}
			System.out.println(ret);
		}
	}
} Main public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		while (sc.hasNext()) {
			StringBuffer str = new StringBuffer(sc.nextLine());
			String ret = new String();
			int i, length = str.length();
			for (i = 0; i < length; i++) {
				ret = ret + str.charAt(str.length() - 1);
				str.deleteCharAt(str.length() -1);
			}
			System.out.println(ret);
		}
	} main {
		Scanner sc = new Scanner(System.in);
		while (sc.hasNext()) {
			StringBuffer str = new StringBuffer(sc.nextLine());
			String ret = new String();
			int i, length = str.length();
			for (i = 0; i < length; i++) {
				ret = ret + str.charAt(str.length() - 1);
				str.deleteCharAt(str.length() -1);
			}
			System.out.println(ret);
		}
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) while (sc.hasNext()) {
			StringBuffer str = new StringBuffer(sc.nextLine());
			String ret = new String();
			int i, length = str.length();
			for (i = 0; i < length; i++) {
				ret = ret + str.charAt(str.length() - 1);
				str.deleteCharAt(str.length() -1);
			}
			System.out.println(ret);
		} sc.hasNext() sc.hasNext sc {
			StringBuffer str = new StringBuffer(sc.nextLine());
			String ret = new String();
			int i, length = str.length();
			for (i = 0; i < length; i++) {
				ret = ret + str.charAt(str.length() - 1);
				str.deleteCharAt(str.length() -1);
			}
			System.out.println(ret);
		} StringBuffer str = new StringBuffer(sc.nextLine()); str new StringBuffer(sc.nextLine()) String ret = new String(); ret new String() int i i length = str.length(); length str.length() str.length str for (i = 0; i < length; i++) {
				ret = ret + str.charAt(str.length() - 1);
				str.deleteCharAt(str.length() -1);
			} i = 0; i = 0 i 0 i < length i length i++ i++ i {
				ret = ret + str.charAt(str.length() - 1);
				str.deleteCharAt(str.length() -1);
			} {
				ret = ret + str.charAt(str.length() - 1);
				str.deleteCharAt(str.length() -1);
			} ret = ret + str.charAt(str.length() - 1) ret ret + str.charAt(str.length() - 1) ret str.charAt(str.length() - 1) str.charAt str str.length() - 1 str.length() str.length str 1 str.deleteCharAt(str.length() -1) str.deleteCharAt str str.length() -1 str.length() str.length str 1 System.out.println(ret) System.out.println System.out System System.out ret String[] args args
import java.util.Scanner;

class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		while (sc.hasNext()) {
			StringBuffer str = new StringBuffer(sc.nextLine());
			String ret = new String();
			int i, length = str.length();
			for (i = 0; i < length; i++) {
				ret = ret + str.charAt(str.length() - 1);
				str.deleteCharAt(str.length() -1);
			}
			System.out.println(ret);
		}
	}
}