import java.util.*;

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

public class Main {
    public static void main (String[] args) {
        Scanner scanner = new Scanner(System.in);
       
        StringBuffer str = new StringBuffer(scanner.next());
        System.out.println(str.reverse());
    }
}