import java.util.Scanner;

public class Main {
	static Scanner sc = new Scanner(System.in);

	public static void main(String[] args) {
		String str =new Scanner(System.in).nextLine();
		String[] str1 = str.split("");
		String[] str2 = new String[str1.length];
		for (int i = str1.length - 1; i >= 0; i--) {
			str2[str1.length - i - 1] = str1[i];
		}
		String str3 ="";
		for (int i = 0; i < str2.length; i++) {
			str3=str3+str2[i];
		}
		System.out.println(str3);
	}

} import java.util.Scanner; Scanner java.util public class Main {
	static Scanner sc = new Scanner(System.in);

	public static void main(String[] args) {
		String str =new Scanner(System.in).nextLine();
		String[] str1 = str.split("");
		String[] str2 = new String[str1.length];
		for (int i = str1.length - 1; i >= 0; i--) {
			str2[str1.length - i - 1] = str1[i];
		}
		String str3 ="";
		for (int i = 0; i < str2.length; i++) {
			str3=str3+str2[i];
		}
		System.out.println(str3);
	}

} Main static Scanner sc = new Scanner(System.in); sc new Scanner(System.in) public static void main(String[] args) {
		String str =new Scanner(System.in).nextLine();
		String[] str1 = str.split("");
		String[] str2 = new String[str1.length];
		for (int i = str1.length - 1; i >= 0; i--) {
			str2[str1.length - i - 1] = str1[i];
		}
		String str3 ="";
		for (int i = 0; i < str2.length; i++) {
			str3=str3+str2[i];
		}
		System.out.println(str3);
	} main {
		String str =new Scanner(System.in).nextLine();
		String[] str1 = str.split("");
		String[] str2 = new String[str1.length];
		for (int i = str1.length - 1; i >= 0; i--) {
			str2[str1.length - i - 1] = str1[i];
		}
		String str3 ="";
		for (int i = 0; i < str2.length; i++) {
			str3=str3+str2[i];
		}
		System.out.println(str3);
	} String str =new Scanner(System.in).nextLine(); str new Scanner(System.in).nextLine() new Scanner(System.in).nextLine new Scanner(System.in) String[] str1 = str.split(""); str1 str.split("") str.split str "" String[] str2 = new String[str1.length]; str2 new String[str1.length] str1.length str1 str1.length for (int i = str1.length - 1; i >= 0; i--) {
			str2[str1.length - i - 1] = str1[i];
		} int i = str1.length - 1; int i = str1.length - 1; i str1.length - 1 str1.length str1 str1.length 1 i >= 0 i 0 i-- i-- i {
			str2[str1.length - i - 1] = str1[i];
		} {
			str2[str1.length - i - 1] = str1[i];
		} str2[str1.length - i - 1] = str1[i] str2[str1.length - i - 1] str2 str1.length - i - 1 str1.length - i - 1 str1.length str1 str1.length i 1 str1[i] str1 i String str3 =""; str3 "" for (int i = 0; i < str2.length; i++) {
			str3=str3+str2[i];
		} int i = 0; int i = 0; i 0 i < str2.length i str2.length str2 str2.length i++ i++ i {
			str3=str3+str2[i];
		} {
			str3=str3+str2[i];
		} str3=str3+str2[i] str3 str3+str2[i] str3 str2[i] str2 i System.out.println(str3) System.out.println System.out System System.out str3 String[] args args public class Main {
	static Scanner sc = new Scanner(System.in);

	public static void main(String[] args) {
		String str =new Scanner(System.in).nextLine();
		String[] str1 = str.split("");
		String[] str2 = new String[str1.length];
		for (int i = str1.length - 1; i >= 0; i--) {
			str2[str1.length - i - 1] = str1[i];
		}
		String str3 ="";
		for (int i = 0; i < str2.length; i++) {
			str3=str3+str2[i];
		}
		System.out.println(str3);
	}

} public class Main {
	static Scanner sc = new Scanner(System.in);

	public static void main(String[] args) {
		String str =new Scanner(System.in).nextLine();
		String[] str1 = str.split("");
		String[] str2 = new String[str1.length];
		for (int i = str1.length - 1; i >= 0; i--) {
			str2[str1.length - i - 1] = str1[i];
		}
		String str3 ="";
		for (int i = 0; i < str2.length; i++) {
			str3=str3+str2[i];
		}
		System.out.println(str3);
	}

} Main
import java.util.Scanner;

public class Main {
	static Scanner sc = new Scanner(System.in);

	public static void main(String[] args) {
		String str =new Scanner(System.in).nextLine();
		String[] str1 = str.split("");
		String[] str2 = new String[str1.length];
		for (int i = str1.length - 1; i >= 0; i--) {
			str2[str1.length - i - 1] = str1[i];
		}
		String str3 ="";
		for (int i = 0; i < str2.length; i++) {
			str3=str3+str2[i];
		}
		System.out.println(str3);
	}

}