import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        try (Scanner in = new Scanner(System.in)) {
            solve(in);
        }
    }

    private static void solve(Scanner in) {
        char[] cs = in.next().toCharArray();
        for (int i = cs.length - 1; i >= 0; i--) {
            System.out.print(cs[i]);
        }
        System.out.println();
    }
} import java.util.Scanner; Scanner java.util public class Main {
    public static void main(String[] args) {
        try (Scanner in = new Scanner(System.in)) {
            solve(in);
        }
    }

    private static void solve(Scanner in) {
        char[] cs = in.next().toCharArray();
        for (int i = cs.length - 1; i >= 0; i--) {
            System.out.print(cs[i]);
        }
        System.out.println();
    }
} Main public static void main(String[] args) {
        try (Scanner in = new Scanner(System.in)) {
            solve(in);
        }
    } main {
        try (Scanner in = new Scanner(System.in)) {
            solve(in);
        }
    } try (Scanner in = new Scanner(System.in)) {
            solve(in);
        } {
            solve(in);
        } Scanner in = new Scanner(System.in) Scanner in = new Scanner(System.in) new Scanner(System.in) solve(in) solve in String[] args args private static void solve(Scanner in) {
        char[] cs = in.next().toCharArray();
        for (int i = cs.length - 1; i >= 0; i--) {
            System.out.print(cs[i]);
        }
        System.out.println();
    } solve {
        char[] cs = in.next().toCharArray();
        for (int i = cs.length - 1; i >= 0; i--) {
            System.out.print(cs[i]);
        }
        System.out.println();
    } char[] cs = in.next().toCharArray(); cs in.next().toCharArray() in.next().toCharArray in.next() in.next in for (int i = cs.length - 1; i >= 0; i--) {
            System.out.print(cs[i]);
        } int i = cs.length - 1; int i = cs.length - 1; i cs.length - 1 cs.length cs cs.length 1 i >= 0 i 0 i-- i-- i {
            System.out.print(cs[i]);
        } {
            System.out.print(cs[i]);
        } System.out.print(cs[i]) System.out.print System.out System System.out cs[i] cs i System.out.println() System.out.println System.out System System.out Scanner in in public class Main {
    public static void main(String[] args) {
        try (Scanner in = new Scanner(System.in)) {
            solve(in);
        }
    }

    private static void solve(Scanner in) {
        char[] cs = in.next().toCharArray();
        for (int i = cs.length - 1; i >= 0; i--) {
            System.out.print(cs[i]);
        }
        System.out.println();
    }
} public class Main {
    public static void main(String[] args) {
        try (Scanner in = new Scanner(System.in)) {
            solve(in);
        }
    }

    private static void solve(Scanner in) {
        char[] cs = in.next().toCharArray();
        for (int i = cs.length - 1; i >= 0; i--) {
            System.out.print(cs[i]);
        }
        System.out.println();
    }
} Main
import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        try (Scanner in = new Scanner(System.in)) {
            solve(in);
        }
    }

    private static void solve(Scanner in) {
        char[] cs = in.next().toCharArray();
        for (int i = cs.length - 1; i >= 0; i--) {
            System.out.print(cs[i]);
        }
        System.out.println();
    }
}