import java.util.*;

class Main {
    public static void main (String [] args) {

        Scanner sc = new Scanner(System.in);

        char [] str = sc.next().toCharArray();
        for(int x = str.length-1; x >= 0; x--) {
            System.out.print(str[x]);
        }

        System.out.print("\n");
    }
} import java.util.*; util.* java class Main {
    public static void main (String [] args) {

        Scanner sc = new Scanner(System.in);

        char [] str = sc.next().toCharArray();
        for(int x = str.length-1; x >= 0; x--) {
            System.out.print(str[x]);
        }

        System.out.print("\n");
    }
} Main public static void main (String [] args) {

        Scanner sc = new Scanner(System.in);

        char [] str = sc.next().toCharArray();
        for(int x = str.length-1; x >= 0; x--) {
            System.out.print(str[x]);
        }

        System.out.print("\n");
    } main {

        Scanner sc = new Scanner(System.in);

        char [] str = sc.next().toCharArray();
        for(int x = str.length-1; x >= 0; x--) {
            System.out.print(str[x]);
        }

        System.out.print("\n");
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) char [] str = sc.next().toCharArray(); str sc.next().toCharArray() sc.next().toCharArray sc.next() sc.next sc for(int x = str.length-1; x >= 0; x--) {
            System.out.print(str[x]);
        } int x = str.length-1; int x = str.length-1; x str.length-1 str.length str str.length 1 x >= 0 x 0 x-- x-- x {
            System.out.print(str[x]);
        } {
            System.out.print(str[x]);
        } System.out.print(str[x]) System.out.print System.out System System.out str[x] str x System.out.print("\n") System.out.print System.out System System.out "\n" String [] args args
import java.util.*;

class Main {
    public static void main (String [] args) {

        Scanner sc = new Scanner(System.in);

        char [] str = sc.next().toCharArray();
        for(int x = str.length-1; x >= 0; x--) {
            System.out.print(str[x]);
        }

        System.out.print("\n");
    }
}