import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		char[] s1 = sc.next().toCharArray();
		int n = s1.length;
		char[] s2 = new char[n];
		for(int i=0;i<n;i++) {
			s2[i] = s1[n-1-i];
		}
		System.out.println(String.valueOf(s2));
	}

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

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		char[] s1 = sc.next().toCharArray();
		int n = s1.length;
		char[] s2 = new char[n];
		for(int i=0;i<n;i++) {
			s2[i] = s1[n-1-i];
		}
		System.out.println(String.valueOf(s2));
	}

} Main public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		char[] s1 = sc.next().toCharArray();
		int n = s1.length;
		char[] s2 = new char[n];
		for(int i=0;i<n;i++) {
			s2[i] = s1[n-1-i];
		}
		System.out.println(String.valueOf(s2));
	} main {
		Scanner sc = new Scanner(System.in);
		char[] s1 = sc.next().toCharArray();
		int n = s1.length;
		char[] s2 = new char[n];
		for(int i=0;i<n;i++) {
			s2[i] = s1[n-1-i];
		}
		System.out.println(String.valueOf(s2));
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) char[] s1 = sc.next().toCharArray(); s1 sc.next().toCharArray() sc.next().toCharArray sc.next() sc.next sc int n = s1.length; n s1.length s1 s1.length char[] s2 = new char[n]; s2 new char[n] n for(int i=0;i<n;i++) {
			s2[i] = s1[n-1-i];
		} int i=0; int i=0; i 0 i<n i n i++ i++ i {
			s2[i] = s1[n-1-i];
		} {
			s2[i] = s1[n-1-i];
		} s2[i] = s1[n-1-i] s2[i] s2 i s1[n-1-i] s1 n-1-i n-1-i n 1 i System.out.println(String.valueOf(s2)) System.out.println System.out System System.out String.valueOf(s2) String.valueOf String s2 String[] args args public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		char[] s1 = sc.next().toCharArray();
		int n = s1.length;
		char[] s2 = new char[n];
		for(int i=0;i<n;i++) {
			s2[i] = s1[n-1-i];
		}
		System.out.println(String.valueOf(s2));
	}

} public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		char[] s1 = sc.next().toCharArray();
		int n = s1.length;
		char[] s2 = new char[n];
		for(int i=0;i<n;i++) {
			s2[i] = s1[n-1-i];
		}
		System.out.println(String.valueOf(s2));
	}

} Main
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		char[] s1 = sc.next().toCharArray();
		int n = s1.length;
		char[] s2 = new char[n];
		for(int i=0;i<n;i++) {
			s2[i] = s1[n-1-i];
		}
		System.out.println(String.valueOf(s2));
	}

}