import java.io.PrintStream;
import java.util.Scanner;

class Main {

    public static void main(String[] args) {
        doit(args, new Scanner(System.in), System.out);
    }

    static void doit(String[] args, Scanner scanner, PrintStream out) {
        String str = scanner.next();
        StringBuilder sb = new StringBuilder();
        for (int i = str.length() - 1; i >= 0; i--) {
            sb.append(str.charAt(i));
        }
        out.println(sb.toString());
    }
} import java.io.PrintStream; PrintStream java.io import java.util.Scanner; Scanner java.util class Main {

    public static void main(String[] args) {
        doit(args, new Scanner(System.in), System.out);
    }

    static void doit(String[] args, Scanner scanner, PrintStream out) {
        String str = scanner.next();
        StringBuilder sb = new StringBuilder();
        for (int i = str.length() - 1; i >= 0; i--) {
            sb.append(str.charAt(i));
        }
        out.println(sb.toString());
    }
} Main public static void main(String[] args) {
        doit(args, new Scanner(System.in), System.out);
    } main {
        doit(args, new Scanner(System.in), System.out);
    } doit(args, new Scanner(System.in), System.out) doit args new Scanner(System.in) System.out System System.out String[] args args static void doit(String[] args, Scanner scanner, PrintStream out) {
        String str = scanner.next();
        StringBuilder sb = new StringBuilder();
        for (int i = str.length() - 1; i >= 0; i--) {
            sb.append(str.charAt(i));
        }
        out.println(sb.toString());
    } doit {
        String str = scanner.next();
        StringBuilder sb = new StringBuilder();
        for (int i = str.length() - 1; i >= 0; i--) {
            sb.append(str.charAt(i));
        }
        out.println(sb.toString());
    } String str = scanner.next(); str scanner.next() scanner.next scanner 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 out.println(sb.toString()) out.println out sb.toString() sb.toString sb String[] args args Scanner scanner scanner PrintStream out out
import java.io.PrintStream;
import java.util.Scanner;

class Main {

    public static void main(String[] args) {
        doit(args, new Scanner(System.in), System.out);
    }

    static void doit(String[] args, Scanner scanner, PrintStream out) {
        String str = scanner.next();
        StringBuilder sb = new StringBuilder();
        for (int i = str.length() - 1; i >= 0; i--) {
            sb.append(str.charAt(i));
        }
        out.println(sb.toString());
    }
}