import java.util.*;

public class Main {
    private static final Scanner scn = new Scanner(System.in);
    
    public static void main(String[] args) {
        System.out.println(new StringBuilder(scn.next()).reverse());
    }
} import java.util.*; util.* java public class Main {
    private static final Scanner scn = new Scanner(System.in);
    
    public static void main(String[] args) {
        System.out.println(new StringBuilder(scn.next()).reverse());
    }
} Main private static final Scanner scn = new Scanner(System.in); scn new Scanner(System.in) public static void main(String[] args) {
        System.out.println(new StringBuilder(scn.next()).reverse());
    } main {
        System.out.println(new StringBuilder(scn.next()).reverse());
    } System.out.println(new StringBuilder(scn.next()).reverse()) System.out.println System.out System System.out new StringBuilder(scn.next()).reverse() new StringBuilder(scn.next()).reverse new StringBuilder(scn.next()) String[] args args public class Main {
    private static final Scanner scn = new Scanner(System.in);
    
    public static void main(String[] args) {
        System.out.println(new StringBuilder(scn.next()).reverse());
    }
} public class Main {
    private static final Scanner scn = new Scanner(System.in);
    
    public static void main(String[] args) {
        System.out.println(new StringBuilder(scn.next()).reverse());
    }
} Main
import java.util.*;

public class Main {
    private static final Scanner scn = new Scanner(System.in);
    
    public static void main(String[] args) {
        System.out.println(new StringBuilder(scn.next()).reverse());
    }
}