import java.io.BufferedReader;
import java.io.InputStreamReader;

class Main {
    /**
     * ??\?????????????????? / ????????????????????????
     */
    public static void main(String[] args) throws Exception {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));

        String line = br.readLine();
        //??????????????¢?????§??????StringBuffer??????????????????
        StringBuffer sb = new StringBuffer(line);
        String answer = sb.reverse().toString();
        
        System.out.println(answer);
    }
} import java.io.BufferedReader; BufferedReader java.io import java.io.InputStreamReader; InputStreamReader java.io class Main {
    /**
     * ??\?????????????????? / ????????????????????????
     */
    public static void main(String[] args) throws Exception {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));

        String line = br.readLine();
        //??????????????¢?????§??????StringBuffer??????????????????
        StringBuffer sb = new StringBuffer(line);
        String answer = sb.reverse().toString();
        
        System.out.println(answer);
    }
} Main /**
     * ??\?????????????????? / ????????????????????????
     */
    public static void main(String[] args) throws Exception {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));

        String line = br.readLine();
        //??????????????¢?????§??????StringBuffer??????????????????
        StringBuffer sb = new StringBuffer(line);
        String answer = sb.reverse().toString();
        
        System.out.println(answer);
    } main {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));

        String line = br.readLine();
        //??????????????¢?????§??????StringBuffer??????????????????
        StringBuffer sb = new StringBuffer(line);
        String answer = sb.reverse().toString();
        
        System.out.println(answer);
    } BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) String line = br.readLine(); line br.readLine() br.readLine br StringBuffer sb = new StringBuffer(line); sb new StringBuffer(line) String answer = sb.reverse().toString(); answer sb.reverse().toString() sb.reverse().toString sb.reverse() sb.reverse sb System.out.println(answer) System.out.println System.out System System.out answer String[] args args
import java.io.BufferedReader;
import java.io.InputStreamReader;

class Main {
    /**
     * ??\?????????????????? / ????????????????????????
     */
    public static void main(String[] args) throws Exception {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));

        String line = br.readLine();
        //??????????????¢?????§??????StringBuffer??????????????????
        StringBuffer sb = new StringBuffer(line);
        String answer = sb.reverse().toString();
        
        System.out.println(answer);
    }
}