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