import java.util.Scanner;

public class Main {

	static Scanner sc = new Scanner(System.in);
	public static void main(String[] args) {
		System.out.println( reverse_str( sc.nextLine() ) );
		sc.close();
	}

	private static String reverse_str(String nextLine) {
		String str = nextLine;
		StringBuffer sb = new StringBuffer();

			for (int i = 0; i < str.length(); i++) {
				sb.append( str.charAt(str.length() - ( 1 + i ) ) );
			}

		String rev_str = sb.toString();

		return rev_str;
	}
} import java.util.Scanner; Scanner java.util public class Main {

	static Scanner sc = new Scanner(System.in);
	public static void main(String[] args) {
		System.out.println( reverse_str( sc.nextLine() ) );
		sc.close();
	}

	private static String reverse_str(String nextLine) {
		String str = nextLine;
		StringBuffer sb = new StringBuffer();

			for (int i = 0; i < str.length(); i++) {
				sb.append( str.charAt(str.length() - ( 1 + i ) ) );
			}

		String rev_str = sb.toString();

		return rev_str;
	}
} Main static Scanner sc = new Scanner(System.in); sc new Scanner(System.in) public static void main(String[] args) {
		System.out.println( reverse_str( sc.nextLine() ) );
		sc.close();
	} main {
		System.out.println( reverse_str( sc.nextLine() ) );
		sc.close();
	} System.out.println( reverse_str( sc.nextLine() ) ) System.out.println System.out System System.out reverse_str( sc.nextLine() ) reverse_str sc.nextLine() sc.nextLine sc sc.close() sc.close sc String[] args args private static String reverse_str(String nextLine) {
		String str = nextLine;
		StringBuffer sb = new StringBuffer();

			for (int i = 0; i < str.length(); i++) {
				sb.append( str.charAt(str.length() - ( 1 + i ) ) );
			}

		String rev_str = sb.toString();

		return rev_str;
	} reverse_str {
		String str = nextLine;
		StringBuffer sb = new StringBuffer();

			for (int i = 0; i < str.length(); i++) {
				sb.append( str.charAt(str.length() - ( 1 + i ) ) );
			}

		String rev_str = sb.toString();

		return rev_str;
	} String str = nextLine; str nextLine StringBuffer sb = new StringBuffer(); sb new StringBuffer() for (int i = 0; i < str.length(); i++) {
				sb.append( str.charAt(str.length() - ( 1 + i ) ) );
			} int i = 0; int i = 0; i 0 i < str.length() i str.length() str.length str i++ i++ i {
				sb.append( str.charAt(str.length() - ( 1 + i ) ) );
			} {
				sb.append( str.charAt(str.length() - ( 1 + i ) ) );
			} sb.append( str.charAt(str.length() - ( 1 + i ) ) ) sb.append sb str.charAt(str.length() - ( 1 + i ) ) str.charAt str str.length() - ( 1 + i ) str.length() str.length str ( 1 + i ) 1 i String rev_str = sb.toString(); rev_str sb.toString() sb.toString sb return rev_str; rev_str String nextLine nextLine public class Main {

	static Scanner sc = new Scanner(System.in);
	public static void main(String[] args) {
		System.out.println( reverse_str( sc.nextLine() ) );
		sc.close();
	}

	private static String reverse_str(String nextLine) {
		String str = nextLine;
		StringBuffer sb = new StringBuffer();

			for (int i = 0; i < str.length(); i++) {
				sb.append( str.charAt(str.length() - ( 1 + i ) ) );
			}

		String rev_str = sb.toString();

		return rev_str;
	}
} public class Main {

	static Scanner sc = new Scanner(System.in);
	public static void main(String[] args) {
		System.out.println( reverse_str( sc.nextLine() ) );
		sc.close();
	}

	private static String reverse_str(String nextLine) {
		String str = nextLine;
		StringBuffer sb = new StringBuffer();

			for (int i = 0; i < str.length(); i++) {
				sb.append( str.charAt(str.length() - ( 1 + i ) ) );
			}

		String rev_str = sb.toString();

		return rev_str;
	}
} Main
import java.util.Scanner;

public class Main {

	static Scanner sc = new Scanner(System.in);
	public static void main(String[] args) {
		System.out.println( reverse_str( sc.nextLine() ) );
		sc.close();
	}

	private static String reverse_str(String nextLine) {
		String str = nextLine;
		StringBuffer sb = new StringBuffer();

			for (int i = 0; i < str.length(); i++) {
				sb.append( str.charAt(str.length() - ( 1 + i ) ) );
			}

		String rev_str = sb.toString();

		return rev_str;
	}
}
