import java.util.Scanner;

public class Main {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ
		String str;
		Scanner scan = new Scanner(System.in);
		str = scan.nextLine();
		StringBuilder sb = new StringBuilder();
		for (int i = str.length() - 1; i >= 0; i--) {
			sb.append(str.charAt(i));
		}
		String str2 = new String(sb);
		System.out.println(str2);
	}
} import java.util.Scanner; Scanner java.util public class Main {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ
		String str;
		Scanner scan = new Scanner(System.in);
		str = scan.nextLine();
		StringBuilder sb = new StringBuilder();
		for (int i = str.length() - 1; i >= 0; i--) {
			sb.append(str.charAt(i));
		}
		String str2 = new String(sb);
		System.out.println(str2);
	}
} Main /**
	 * @param args
	 */
	public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ
		String str;
		Scanner scan = new Scanner(System.in);
		str = scan.nextLine();
		StringBuilder sb = new StringBuilder();
		for (int i = str.length() - 1; i >= 0; i--) {
			sb.append(str.charAt(i));
		}
		String str2 = new String(sb);
		System.out.println(str2);
	} main {
		// TODO 自動生成されたメソッド・スタブ
		String str;
		Scanner scan = new Scanner(System.in);
		str = scan.nextLine();
		StringBuilder sb = new StringBuilder();
		for (int i = str.length() - 1; i >= 0; i--) {
			sb.append(str.charAt(i));
		}
		String str2 = new String(sb);
		System.out.println(str2);
	} String str; str Scanner scan = new Scanner(System.in); scan new Scanner(System.in) str = scan.nextLine() str scan.nextLine() scan.nextLine scan StringBuilder sb = new StringBuilder(); sb new StringBuilder() for (int i = str.length() - 1; i >= 0; i--) {
			sb.append(str.charAt(i));
		} int i = str.length() - 1; int i = str.length() - 1; i str.length() - 1 str.length() str.length str 1 i >= 0 i 0 i-- i-- i {
			sb.append(str.charAt(i));
		} {
			sb.append(str.charAt(i));
		} sb.append(str.charAt(i)) sb.append sb str.charAt(i) str.charAt str i String str2 = new String(sb); str2 new String(sb) System.out.println(str2) System.out.println System.out System System.out str2 String[] args args public class Main {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ
		String str;
		Scanner scan = new Scanner(System.in);
		str = scan.nextLine();
		StringBuilder sb = new StringBuilder();
		for (int i = str.length() - 1; i >= 0; i--) {
			sb.append(str.charAt(i));
		}
		String str2 = new String(sb);
		System.out.println(str2);
	}
} public class Main {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ
		String str;
		Scanner scan = new Scanner(System.in);
		str = scan.nextLine();
		StringBuilder sb = new StringBuilder();
		for (int i = str.length() - 1; i >= 0; i--) {
			sb.append(str.charAt(i));
		}
		String str2 = new String(sb);
		System.out.println(str2);
	}
} Main
import java.util.Scanner;

public class Main {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ
		String str;
		Scanner scan = new Scanner(System.in);
		str = scan.nextLine();
		StringBuilder sb = new StringBuilder();
		for (int i = str.length() - 1; i >= 0; i--) {
			sb.append(str.charAt(i));
		}
		String str2 = new String(sb);
		System.out.println(str2);
	}
}