import java.util.Scanner;

public class Main {

    static void printBWD(String str, int n) {
        if (n < str.length()) {
            printBWD(str, n + 1);
            System.out.print(str.charAt(n));
        }
        return;
    }

    public static void main (String[] args) {
        Scanner sc = new Scanner(System.in);
        String line = sc.next();
        printBWD(line, 0);
        System.out.println();
    }
} import java.util.Scanner; Scanner java.util public class Main {

    static void printBWD(String str, int n) {
        if (n < str.length()) {
            printBWD(str, n + 1);
            System.out.print(str.charAt(n));
        }
        return;
    }

    public static void main (String[] args) {
        Scanner sc = new Scanner(System.in);
        String line = sc.next();
        printBWD(line, 0);
        System.out.println();
    }
} Main static void printBWD(String str, int n) {
        if (n < str.length()) {
            printBWD(str, n + 1);
            System.out.print(str.charAt(n));
        }
        return;
    } printBWD {
        if (n < str.length()) {
            printBWD(str, n + 1);
            System.out.print(str.charAt(n));
        }
        return;
    } if (n < str.length()) {
            printBWD(str, n + 1);
            System.out.print(str.charAt(n));
        } n < str.length() n str.length() str.length str {
            printBWD(str, n + 1);
            System.out.print(str.charAt(n));
        } printBWD(str, n + 1) printBWD str n + 1 n 1 System.out.print(str.charAt(n)) System.out.print System.out System System.out str.charAt(n) str.charAt str n return; String str str int n n public static void main (String[] args) {
        Scanner sc = new Scanner(System.in);
        String line = sc.next();
        printBWD(line, 0);
        System.out.println();
    } main {
        Scanner sc = new Scanner(System.in);
        String line = sc.next();
        printBWD(line, 0);
        System.out.println();
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String line = sc.next(); line sc.next() sc.next sc printBWD(line, 0) printBWD line 0 System.out.println() System.out.println System.out System System.out String[] args args public class Main {

    static void printBWD(String str, int n) {
        if (n < str.length()) {
            printBWD(str, n + 1);
            System.out.print(str.charAt(n));
        }
        return;
    }

    public static void main (String[] args) {
        Scanner sc = new Scanner(System.in);
        String line = sc.next();
        printBWD(line, 0);
        System.out.println();
    }
} public class Main {

    static void printBWD(String str, int n) {
        if (n < str.length()) {
            printBWD(str, n + 1);
            System.out.print(str.charAt(n));
        }
        return;
    }

    public static void main (String[] args) {
        Scanner sc = new Scanner(System.in);
        String line = sc.next();
        printBWD(line, 0);
        System.out.println();
    }
} Main
import java.util.Scanner;

public class Main {

    static void printBWD(String str, int n) {
        if (n < str.length()) {
            printBWD(str, n + 1);
            System.out.print(str.charAt(n));
        }
        return;
    }

    public static void main (String[] args) {
        Scanner sc = new Scanner(System.in);
        String line = sc.next();
        printBWD(line, 0);
        System.out.println();
    }
}