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

class Main {
    public static void main(String[] args) {
        try {
            BufferedReader br = new BufferedReader(new InputStreamReader(System.in));// ??\????????????????????????
            StringBuffer sb = new StringBuffer(br.readLine());
            String line = sb.reverse().toString();
            System.out.println(line);

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

        } catch (Exception e) {
            e.printStackTrace();
        }
    }
} Main public static void main(String[] args) {
        try {
            BufferedReader br = new BufferedReader(new InputStreamReader(System.in));// ??\????????????????????????
            StringBuffer sb = new StringBuffer(br.readLine());
            String line = sb.reverse().toString();
            System.out.println(line);

        } catch (Exception e) {
            e.printStackTrace();
        }
    } main {
        try {
            BufferedReader br = new BufferedReader(new InputStreamReader(System.in));// ??\????????????????????????
            StringBuffer sb = new StringBuffer(br.readLine());
            String line = sb.reverse().toString();
            System.out.println(line);

        } catch (Exception e) {
            e.printStackTrace();
        }
    } try {
            BufferedReader br = new BufferedReader(new InputStreamReader(System.in));// ??\????????????????????????
            StringBuffer sb = new StringBuffer(br.readLine());
            String line = sb.reverse().toString();
            System.out.println(line);

        } catch (Exception e) {
            e.printStackTrace();
        } catch (Exception e) {
            e.printStackTrace();
        } Exception e {
            e.printStackTrace();
        } e.printStackTrace() e.printStackTrace e {
            BufferedReader br = new BufferedReader(new InputStreamReader(System.in));// ??\????????????????????????
            StringBuffer sb = new StringBuffer(br.readLine());
            String line = sb.reverse().toString();
            System.out.println(line);

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

class Main {
    public static void main(String[] args) {
        try {
            BufferedReader br = new BufferedReader(new InputStreamReader(System.in));// ??\????????????????????????
            StringBuffer sb = new StringBuffer(br.readLine());
            String line = sb.reverse().toString();
            System.out.println(line);

        } catch (Exception e) {
            e.printStackTrace();
        }
    }
}