import java.util.Scanner;

class Main {
    private static String reverse(String string) {
        char[] result = new char[string.length()];
        for (int i = 0; i < result.length; i++) {
            result[i] = string.charAt(result.length - i - 1);
        }
        return String.valueOf(result);
    }

    private static void solve() {
        Scanner scanner = new Scanner(System.in);
        String string = scanner.next();
        System.out.println(reverse(string));
    }

    public static void main(String... args) {
        solve();
    }
} import java.util.Scanner; Scanner java.util class Main {
    private static String reverse(String string) {
        char[] result = new char[string.length()];
        for (int i = 0; i < result.length; i++) {
            result[i] = string.charAt(result.length - i - 1);
        }
        return String.valueOf(result);
    }

    private static void solve() {
        Scanner scanner = new Scanner(System.in);
        String string = scanner.next();
        System.out.println(reverse(string));
    }

    public static void main(String... args) {
        solve();
    }
} Main private static String reverse(String string) {
        char[] result = new char[string.length()];
        for (int i = 0; i < result.length; i++) {
            result[i] = string.charAt(result.length - i - 1);
        }
        return String.valueOf(result);
    } reverse {
        char[] result = new char[string.length()];
        for (int i = 0; i < result.length; i++) {
            result[i] = string.charAt(result.length - i - 1);
        }
        return String.valueOf(result);
    } char[] result = new char[string.length()]; result new char[string.length()] string.length() string.length string for (int i = 0; i < result.length; i++) {
            result[i] = string.charAt(result.length - i - 1);
        } int i = 0; int i = 0; i 0 i < result.length i result.length result result.length i++ i++ i {
            result[i] = string.charAt(result.length - i - 1);
        } {
            result[i] = string.charAt(result.length - i - 1);
        } result[i] = string.charAt(result.length - i - 1) result[i] result i string.charAt(result.length - i - 1) string.charAt string result.length - i - 1 result.length - i - 1 result.length result result.length i 1 return String.valueOf(result); String.valueOf(result) String.valueOf String result String string string private static void solve() {
        Scanner scanner = new Scanner(System.in);
        String string = scanner.next();
        System.out.println(reverse(string));
    } solve {
        Scanner scanner = new Scanner(System.in);
        String string = scanner.next();
        System.out.println(reverse(string));
    } Scanner scanner = new Scanner(System.in); scanner new Scanner(System.in) String string = scanner.next(); string scanner.next() scanner.next scanner System.out.println(reverse(string)) System.out.println System.out System System.out reverse(string) reverse string public static void main(String... args) {
        solve();
    } main {
        solve();
    } solve() solve String... args args
import java.util.Scanner;

class Main {
    private static String reverse(String string) {
        char[] result = new char[string.length()];
        for (int i = 0; i < result.length; i++) {
            result[i] = string.charAt(result.length - i - 1);
        }
        return String.valueOf(result);
    }

    private static void solve() {
        Scanner scanner = new Scanner(System.in);
        String string = scanner.next();
        System.out.println(reverse(string));
    }

    public static void main(String... args) {
        solve();
    }
}