import java.util.*;

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

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