import java.util.Scanner;

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

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