import java.util.Scanner;

class Main {
    
	public static void main(String[] args) {
		Scanner s = new Scanner(System.in);
		String str = s.next();
		int l = str.length();
		char[] out = new char[l];
		for (int i=0 ; i<l ; i++)
			out[i] = str.charAt(i);
		for (int i=l-1 ; i >= 0 ; i--)
			System.out.print(out[i]);
System.out.println();
    }
} import java.util.Scanner; Scanner java.util class Main {
    
	public static void main(String[] args) {
		Scanner s = new Scanner(System.in);
		String str = s.next();
		int l = str.length();
		char[] out = new char[l];
		for (int i=0 ; i<l ; i++)
			out[i] = str.charAt(i);
		for (int i=l-1 ; i >= 0 ; i--)
			System.out.print(out[i]);
System.out.println();
    }
} Main public static void main(String[] args) {
		Scanner s = new Scanner(System.in);
		String str = s.next();
		int l = str.length();
		char[] out = new char[l];
		for (int i=0 ; i<l ; i++)
			out[i] = str.charAt(i);
		for (int i=l-1 ; i >= 0 ; i--)
			System.out.print(out[i]);
System.out.println();
    } main {
		Scanner s = new Scanner(System.in);
		String str = s.next();
		int l = str.length();
		char[] out = new char[l];
		for (int i=0 ; i<l ; i++)
			out[i] = str.charAt(i);
		for (int i=l-1 ; i >= 0 ; i--)
			System.out.print(out[i]);
System.out.println();
    } Scanner s = new Scanner(System.in); s new Scanner(System.in) String str = s.next(); str s.next() s.next s int l = str.length(); l str.length() str.length str char[] out = new char[l]; out new char[l] l for (int i=0 ; i<l ; i++)
			out[i] = str.charAt(i); int i=0 ; int i=0 ; i 0 i<l i l i++ i++ i out[i] = str.charAt(i); out[i] = str.charAt(i) out[i] out i str.charAt(i) str.charAt str i for (int i=l-1 ; i >= 0 ; i--)
			System.out.print(out[i]); int i=l-1 ; int i=l-1 ; i l-1 l 1 i >= 0 i 0 i-- i-- i System.out.print(out[i]); System.out.print(out[i]) System.out.print System.out System System.out out[i] out i System.out.println() System.out.println System.out System System.out String[] args args
import java.util.Scanner;

class Main {
    
	public static void main(String[] args) {
		Scanner s = new Scanner(System.in);
		String str = s.next();
		int l = str.length();
		char[] out = new char[l];
		for (int i=0 ; i<l ; i++)
			out[i] = str.charAt(i);
		for (int i=l-1 ; i >= 0 ; i--)
			System.out.print(out[i]);
System.out.println();
    }
}