import java.util.Scanner;

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

        String[] S = sc.next().split("");
        for (int i = S.length - 1; i >= 0; i--) {
            System.out.print(S[i]);
        }
        System.out.println();
    }
} import java.util.Scanner; Scanner java.util public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);

        String[] S = sc.next().split("");
        for (int i = S.length - 1; i >= 0; i--) {
            System.out.print(S[i]);
        }
        System.out.println();
    }
} Main public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);

        String[] S = sc.next().split("");
        for (int i = S.length - 1; i >= 0; i--) {
            System.out.print(S[i]);
        }
        System.out.println();
    } main {
        Scanner sc = new Scanner(System.in);

        String[] S = sc.next().split("");
        for (int i = S.length - 1; i >= 0; i--) {
            System.out.print(S[i]);
        }
        System.out.println();
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String[] S = sc.next().split(""); S sc.next().split("") sc.next().split sc.next() sc.next sc "" for (int i = S.length - 1; i >= 0; i--) {
            System.out.print(S[i]);
        } int i = S.length - 1; int i = S.length - 1; i S.length - 1 S.length S S.length 1 i >= 0 i 0 i-- i-- i {
            System.out.print(S[i]);
        } {
            System.out.print(S[i]);
        } System.out.print(S[i]) System.out.print System.out System System.out S[i] S i System.out.println() System.out.println System.out System System.out String[] args args public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);

        String[] S = sc.next().split("");
        for (int i = S.length - 1; i >= 0; i--) {
            System.out.print(S[i]);
        }
        System.out.println();
    }
} public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);

        String[] S = sc.next().split("");
        for (int i = S.length - 1; i >= 0; i--) {
            System.out.print(S[i]);
        }
        System.out.println();
    }
} Main
import java.util.Scanner;

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

        String[] S = sc.next().split("");
        for (int i = S.length - 1; i >= 0; i--) {
            System.out.print(S[i]);
        }
        System.out.println();
    }
}