import java.util.Scanner;
public class Main {
    public static void main(String[] args) {
        try (Scanner scan = new Scanner(System.in)) {
            StringBuffer str = new StringBuffer(scan.nextLine());
            System.out.println(str.reverse());
        } catch (Exception e) {
            System.exit(0);
        }
    }
} import java.util.Scanner; Scanner java.util public class Main {
    public static void main(String[] args) {
        try (Scanner scan = new Scanner(System.in)) {
            StringBuffer str = new StringBuffer(scan.nextLine());
            System.out.println(str.reverse());
        } catch (Exception e) {
            System.exit(0);
        }
    }
} Main public static void main(String[] args) {
        try (Scanner scan = new Scanner(System.in)) {
            StringBuffer str = new StringBuffer(scan.nextLine());
            System.out.println(str.reverse());
        } catch (Exception e) {
            System.exit(0);
        }
    } main {
        try (Scanner scan = new Scanner(System.in)) {
            StringBuffer str = new StringBuffer(scan.nextLine());
            System.out.println(str.reverse());
        } catch (Exception e) {
            System.exit(0);
        }
    } try (Scanner scan = new Scanner(System.in)) {
            StringBuffer str = new StringBuffer(scan.nextLine());
            System.out.println(str.reverse());
        } catch (Exception e) {
            System.exit(0);
        } catch (Exception e) {
            System.exit(0);
        } Exception e {
            System.exit(0);
        } System.exit(0) System.exit System 0 {
            StringBuffer str = new StringBuffer(scan.nextLine());
            System.out.println(str.reverse());
        } Scanner scan = new Scanner(System.in) Scanner scan = new Scanner(System.in) new Scanner(System.in) StringBuffer str = new StringBuffer(scan.nextLine()); str new StringBuffer(scan.nextLine()) System.out.println(str.reverse()) System.out.println System.out System System.out str.reverse() str.reverse str String[] args args public class Main {
    public static void main(String[] args) {
        try (Scanner scan = new Scanner(System.in)) {
            StringBuffer str = new StringBuffer(scan.nextLine());
            System.out.println(str.reverse());
        } catch (Exception e) {
            System.exit(0);
        }
    }
} public class Main {
    public static void main(String[] args) {
        try (Scanner scan = new Scanner(System.in)) {
            StringBuffer str = new StringBuffer(scan.nextLine());
            System.out.println(str.reverse());
        } catch (Exception e) {
            System.exit(0);
        }
    }
} Main
import java.util.Scanner;
public class Main {
    public static void main(String[] args) {
        try (Scanner scan = new Scanner(System.in)) {
            StringBuffer str = new StringBuffer(scan.nextLine());
            System.out.println(str.reverse());
        } catch (Exception e) {
            System.exit(0);
        }
    }
}