import java.util.*;
import java.math.*;

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

        StringBuffer a = new StringBuffer(sc.next());
        System.out.println(a.reverse());

    }
} import java.util.*; util.* java import java.math.*; math.* java public class Main {
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);

        StringBuffer a = new StringBuffer(sc.next());
        System.out.println(a.reverse());

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

        StringBuffer a = new StringBuffer(sc.next());
        System.out.println(a.reverse());

    } main {
        Scanner sc = new Scanner(System.in);

        StringBuffer a = new StringBuffer(sc.next());
        System.out.println(a.reverse());

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

        StringBuffer a = new StringBuffer(sc.next());
        System.out.println(a.reverse());

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

        StringBuffer a = new StringBuffer(sc.next());
        System.out.println(a.reverse());

    }
} Main
import java.util.*;
import java.math.*;

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

        StringBuffer a = new StringBuffer(sc.next());
        System.out.println(a.reverse());

    }
}