import java.util.Scanner;

public class Main{

    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);

        final String str = scanner.nextLine();

        final String str_reverse = reverse(str);

        System.out.println(str_reverse);
    }

    static String reverse (String str) {
        String result = "";

        final int SIZE = str.length();
        for (int i = SIZE - 1; i >= 0; i--) {
            result += str.substring(i, i + 1);
        }

        return result;
    }

} import java.util.Scanner; Scanner java.util public class Main{

    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);

        final String str = scanner.nextLine();

        final String str_reverse = reverse(str);

        System.out.println(str_reverse);
    }

    static String reverse (String str) {
        String result = "";

        final int SIZE = str.length();
        for (int i = SIZE - 1; i >= 0; i--) {
            result += str.substring(i, i + 1);
        }

        return result;
    }

} Main public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);

        final String str = scanner.nextLine();

        final String str_reverse = reverse(str);

        System.out.println(str_reverse);
    } main {
        Scanner scanner = new Scanner(System.in);

        final String str = scanner.nextLine();

        final String str_reverse = reverse(str);

        System.out.println(str_reverse);
    } Scanner scanner = new Scanner(System.in); scanner new Scanner(System.in) final String str = scanner.nextLine(); str scanner.nextLine() scanner.nextLine scanner final String str_reverse = reverse(str); str_reverse reverse(str) reverse str System.out.println(str_reverse) System.out.println System.out System System.out str_reverse String[] args args static String reverse (String str) {
        String result = "";

        final int SIZE = str.length();
        for (int i = SIZE - 1; i >= 0; i--) {
            result += str.substring(i, i + 1);
        }

        return result;
    } reverse {
        String result = "";

        final int SIZE = str.length();
        for (int i = SIZE - 1; i >= 0; i--) {
            result += str.substring(i, i + 1);
        }

        return result;
    } String result = ""; result "" final int SIZE = str.length(); SIZE str.length() str.length str for (int i = SIZE - 1; i >= 0; i--) {
            result += str.substring(i, i + 1);
        } int i = SIZE - 1; int i = SIZE - 1; i SIZE - 1 SIZE 1 i >= 0 i 0 i-- i-- i {
            result += str.substring(i, i + 1);
        } {
            result += str.substring(i, i + 1);
        } result += str.substring(i, i + 1) result str.substring(i, i + 1) str.substring str i i + 1 i 1 return result; result String str str public class Main{

    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);

        final String str = scanner.nextLine();

        final String str_reverse = reverse(str);

        System.out.println(str_reverse);
    }

    static String reverse (String str) {
        String result = "";

        final int SIZE = str.length();
        for (int i = SIZE - 1; i >= 0; i--) {
            result += str.substring(i, i + 1);
        }

        return result;
    }

} public class Main{

    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);

        final String str = scanner.nextLine();

        final String str_reverse = reverse(str);

        System.out.println(str_reverse);
    }

    static String reverse (String str) {
        String result = "";

        final int SIZE = str.length();
        for (int i = SIZE - 1; i >= 0; i--) {
            result += str.substring(i, i + 1);
        }

        return result;
    }

} Main
import java.util.Scanner;

public class Main{

    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);

        final String str = scanner.nextLine();

        final String str_reverse = reverse(str);

        System.out.println(str_reverse);
    }

    static String reverse (String str) {
        String result = "";

        final int SIZE = str.length();
        for (int i = SIZE - 1; i >= 0; i--) {
            result += str.substring(i, i + 1);
        }

        return result;
    }

}