import java.util.Scanner;
public class Main {
    public static void main (String[] args) {
	Scanner scan = new Scanner (System.in);
	String str = scan.nextLine();
	StringBuilder sb = new StringBuilder();
	for (int i = str.length()-1; i >= 0; i--) {
	    sb.append(str.charAt(i));
	}
	System.out.println(sb);
    }
} import java.util.Scanner; Scanner java.util public class Main {
    public static void main (String[] args) {
	Scanner scan = new Scanner (System.in);
	String str = scan.nextLine();
	StringBuilder sb = new StringBuilder();
	for (int i = str.length()-1; i >= 0; i--) {
	    sb.append(str.charAt(i));
	}
	System.out.println(sb);
    }
} Main public static void main (String[] args) {
	Scanner scan = new Scanner (System.in);
	String str = scan.nextLine();
	StringBuilder sb = new StringBuilder();
	for (int i = str.length()-1; i >= 0; i--) {
	    sb.append(str.charAt(i));
	}
	System.out.println(sb);
    } main {
	Scanner scan = new Scanner (System.in);
	String str = scan.nextLine();
	StringBuilder sb = new StringBuilder();
	for (int i = str.length()-1; i >= 0; i--) {
	    sb.append(str.charAt(i));
	}
	System.out.println(sb);
    } Scanner scan = new Scanner (System.in); scan new Scanner (System.in) String str = scan.nextLine(); str scan.nextLine() scan.nextLine scan StringBuilder sb = new StringBuilder(); sb new StringBuilder() for (int i = str.length()-1; i >= 0; i--) {
	    sb.append(str.charAt(i));
	} int i = str.length()-1; int i = str.length()-1; i str.length()-1 str.length() str.length str 1 i >= 0 i 0 i-- i-- i {
	    sb.append(str.charAt(i));
	} {
	    sb.append(str.charAt(i));
	} sb.append(str.charAt(i)) sb.append sb str.charAt(i) str.charAt str i System.out.println(sb) System.out.println System.out System System.out sb String[] args args public class Main {
    public static void main (String[] args) {
	Scanner scan = new Scanner (System.in);
	String str = scan.nextLine();
	StringBuilder sb = new StringBuilder();
	for (int i = str.length()-1; i >= 0; i--) {
	    sb.append(str.charAt(i));
	}
	System.out.println(sb);
    }
} public class Main {
    public static void main (String[] args) {
	Scanner scan = new Scanner (System.in);
	String str = scan.nextLine();
	StringBuilder sb = new StringBuilder();
	for (int i = str.length()-1; i >= 0; i--) {
	    sb.append(str.charAt(i));
	}
	System.out.println(sb);
    }
} Main
import java.util.Scanner;
public class Main {
    public static void main (String[] args) {
	Scanner scan = new Scanner (System.in);
	String str = scan.nextLine();
	StringBuilder sb = new StringBuilder();
	for (int i = str.length()-1; i >= 0; i--) {
	    sb.append(str.charAt(i));
	}
	System.out.println(sb);
    }
}