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

public class Main {
    public static void main(String[] args) throws Exception {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        try {
            StringBuilder sb = new StringBuilder(br.readLine());
            System.out.println(sb.reverse().toString());

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

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

        } catch (Exception e) {
            System.out.println(e);
        }
    } main {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        try {
            StringBuilder sb = new StringBuilder(br.readLine());
            System.out.println(sb.reverse().toString());

        } catch (Exception e) {
            System.out.println(e);
        }
    } BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) try {
            StringBuilder sb = new StringBuilder(br.readLine());
            System.out.println(sb.reverse().toString());

        } catch (Exception e) {
            System.out.println(e);
        } catch (Exception e) {
            System.out.println(e);
        } Exception e {
            System.out.println(e);
        } System.out.println(e) System.out.println System.out System System.out e {
            StringBuilder sb = new StringBuilder(br.readLine());
            System.out.println(sb.reverse().toString());

        } StringBuilder sb = new StringBuilder(br.readLine()); sb new StringBuilder(br.readLine()) System.out.println(sb.reverse().toString()) System.out.println System.out System System.out sb.reverse().toString() sb.reverse().toString sb.reverse() sb.reverse sb String[] args args public class Main {
    public static void main(String[] args) throws Exception {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        try {
            StringBuilder sb = new StringBuilder(br.readLine());
            System.out.println(sb.reverse().toString());

        } catch (Exception e) {
            System.out.println(e);
        }
    }
} public class Main {
    public static void main(String[] args) throws Exception {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        try {
            StringBuilder sb = new StringBuilder(br.readLine());
            System.out.println(sb.reverse().toString());

        } catch (Exception e) {
            System.out.println(e);
        }
    }
} Main
import java.io.BufferedReader;
import java.io.InputStreamReader;

public class Main {
    public static void main(String[] args) throws Exception {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        try {
            StringBuilder sb = new StringBuilder(br.readLine());
            System.out.println(sb.reverse().toString());

        } catch (Exception e) {
            System.out.println(e);
        }
    }
}