import java.util.Scanner;


public class Main{
	
	public static void main(String[] args){

		Scanner sc = new Scanner(System.in);
		System.out.println(reverse(sc.next()));
		sc.close();
	}
	
	static String reverse(String str) {
		char[] temp = str.toCharArray();
		char[] result = new char[temp.length];
		for(int i = 0; i < temp.length; i++) result[i] = temp[temp.length - 1 - i];
		return new String(result);
	}
} import java.util.Scanner; Scanner java.util public class Main{
	
	public static void main(String[] args){

		Scanner sc = new Scanner(System.in);
		System.out.println(reverse(sc.next()));
		sc.close();
	}
	
	static String reverse(String str) {
		char[] temp = str.toCharArray();
		char[] result = new char[temp.length];
		for(int i = 0; i < temp.length; i++) result[i] = temp[temp.length - 1 - i];
		return new String(result);
	}
} Main public static void main(String[] args){

		Scanner sc = new Scanner(System.in);
		System.out.println(reverse(sc.next()));
		sc.close();
	} main {

		Scanner sc = new Scanner(System.in);
		System.out.println(reverse(sc.next()));
		sc.close();
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) System.out.println(reverse(sc.next())) System.out.println System.out System System.out reverse(sc.next()) reverse sc.next() sc.next sc sc.close() sc.close sc String[] args args static String reverse(String str) {
		char[] temp = str.toCharArray();
		char[] result = new char[temp.length];
		for(int i = 0; i < temp.length; i++) result[i] = temp[temp.length - 1 - i];
		return new String(result);
	} reverse {
		char[] temp = str.toCharArray();
		char[] result = new char[temp.length];
		for(int i = 0; i < temp.length; i++) result[i] = temp[temp.length - 1 - i];
		return new String(result);
	} char[] temp = str.toCharArray(); temp str.toCharArray() str.toCharArray str char[] result = new char[temp.length]; result new char[temp.length] temp.length temp temp.length for(int i = 0; i < temp.length; i++) result[i] = temp[temp.length - 1 - i]; int i = 0; int i = 0; i 0 i < temp.length i temp.length temp temp.length i++ i++ i result[i] = temp[temp.length - 1 - i]; result[i] = temp[temp.length - 1 - i] result[i] result i temp[temp.length - 1 - i] temp temp.length - 1 - i temp.length - 1 - i temp.length temp temp.length 1 i return new String(result); new String(result) String str str public class Main{
	
	public static void main(String[] args){

		Scanner sc = new Scanner(System.in);
		System.out.println(reverse(sc.next()));
		sc.close();
	}
	
	static String reverse(String str) {
		char[] temp = str.toCharArray();
		char[] result = new char[temp.length];
		for(int i = 0; i < temp.length; i++) result[i] = temp[temp.length - 1 - i];
		return new String(result);
	}
} public class Main{
	
	public static void main(String[] args){

		Scanner sc = new Scanner(System.in);
		System.out.println(reverse(sc.next()));
		sc.close();
	}
	
	static String reverse(String str) {
		char[] temp = str.toCharArray();
		char[] result = new char[temp.length];
		for(int i = 0; i < temp.length; i++) result[i] = temp[temp.length - 1 - i];
		return new String(result);
	}
} Main
import java.util.Scanner;


public class Main{
	
	public static void main(String[] args){

		Scanner sc = new Scanner(System.in);
		System.out.println(reverse(sc.next()));
		sc.close();
	}
	
	static String reverse(String str) {
		char[] temp = str.toCharArray();
		char[] result = new char[temp.length];
		for(int i = 0; i < temp.length; i++) result[i] = temp[temp.length - 1 - i];
		return new String(result);
	}
}