import java.util.*;

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

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