import java.io.*;

public class Main {

    public static void main(String[] args) throws IOException{
        BufferedReader buf = new BufferedReader(new InputStreamReader(System.in));
        StringBuilder st = new StringBuilder(buf.readLine());
        st.reverse();

        System.out.println(st.toString());


    }
} import java.io.*; io.* java public class Main {

    public static void main(String[] args) throws IOException{
        BufferedReader buf = new BufferedReader(new InputStreamReader(System.in));
        StringBuilder st = new StringBuilder(buf.readLine());
        st.reverse();

        System.out.println(st.toString());


    }
} Main public static void main(String[] args) throws IOException{
        BufferedReader buf = new BufferedReader(new InputStreamReader(System.in));
        StringBuilder st = new StringBuilder(buf.readLine());
        st.reverse();

        System.out.println(st.toString());


    } main {
        BufferedReader buf = new BufferedReader(new InputStreamReader(System.in));
        StringBuilder st = new StringBuilder(buf.readLine());
        st.reverse();

        System.out.println(st.toString());


    } BufferedReader buf = new BufferedReader(new InputStreamReader(System.in)); buf new BufferedReader(new InputStreamReader(System.in)) StringBuilder st = new StringBuilder(buf.readLine()); st new StringBuilder(buf.readLine()) st.reverse() st.reverse st System.out.println(st.toString()) System.out.println System.out System System.out st.toString() st.toString st String[] args args public class Main {

    public static void main(String[] args) throws IOException{
        BufferedReader buf = new BufferedReader(new InputStreamReader(System.in));
        StringBuilder st = new StringBuilder(buf.readLine());
        st.reverse();

        System.out.println(st.toString());


    }
} public class Main {

    public static void main(String[] args) throws IOException{
        BufferedReader buf = new BufferedReader(new InputStreamReader(System.in));
        StringBuilder st = new StringBuilder(buf.readLine());
        st.reverse();

        System.out.println(st.toString());


    }
} Main
import java.io.*;

public class Main {

    public static void main(String[] args) throws IOException{
        BufferedReader buf = new BufferedReader(new InputStreamReader(System.in));
        StringBuilder st = new StringBuilder(buf.readLine());
        st.reverse();

        System.out.println(st.toString());


    }
}