import java.util.Scanner;

public class Main {

    public static void main(String[] args) {
        try (Scanner scan = new Scanner(System.in)) {
            String str = scan.nextLine();
            int len = str.length();
            for (int i = len - 1; 0 <= i; i--) {
                if (i == 0) {
                    System.out.println(str.charAt(i));
                } else {
                    System.out.print(str.charAt(i));
                }
            }
        } 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)) {
            String str = scan.nextLine();
            int len = str.length();
            for (int i = len - 1; 0 <= i; i--) {
                if (i == 0) {
                    System.out.println(str.charAt(i));
                } else {
                    System.out.print(str.charAt(i));
                }
            }
        } catch (Exception e) {
            System.exit(0);
        }
    }
} Main public static void main(String[] args) {
        try (Scanner scan = new Scanner(System.in)) {
            String str = scan.nextLine();
            int len = str.length();
            for (int i = len - 1; 0 <= i; i--) {
                if (i == 0) {
                    System.out.println(str.charAt(i));
                } else {
                    System.out.print(str.charAt(i));
                }
            }
        } catch (Exception e) {
            System.exit(0);
        }
    } main {
        try (Scanner scan = new Scanner(System.in)) {
            String str = scan.nextLine();
            int len = str.length();
            for (int i = len - 1; 0 <= i; i--) {
                if (i == 0) {
                    System.out.println(str.charAt(i));
                } else {
                    System.out.print(str.charAt(i));
                }
            }
        } catch (Exception e) {
            System.exit(0);
        }
    } try (Scanner scan = new Scanner(System.in)) {
            String str = scan.nextLine();
            int len = str.length();
            for (int i = len - 1; 0 <= i; i--) {
                if (i == 0) {
                    System.out.println(str.charAt(i));
                } else {
                    System.out.print(str.charAt(i));
                }
            }
        } catch (Exception e) {
            System.exit(0);
        } catch (Exception e) {
            System.exit(0);
        } Exception e {
            System.exit(0);
        } System.exit(0) System.exit System 0 {
            String str = scan.nextLine();
            int len = str.length();
            for (int i = len - 1; 0 <= i; i--) {
                if (i == 0) {
                    System.out.println(str.charAt(i));
                } else {
                    System.out.print(str.charAt(i));
                }
            }
        } Scanner scan = new Scanner(System.in) Scanner scan = new Scanner(System.in) new Scanner(System.in) String str = scan.nextLine(); str scan.nextLine() scan.nextLine scan int len = str.length(); len str.length() str.length str for (int i = len - 1; 0 <= i; i--) {
                if (i == 0) {
                    System.out.println(str.charAt(i));
                } else {
                    System.out.print(str.charAt(i));
                }
            } int i = len - 1; int i = len - 1; i len - 1 len 1 0 <= i 0 i i-- i-- i {
                if (i == 0) {
                    System.out.println(str.charAt(i));
                } else {
                    System.out.print(str.charAt(i));
                }
            } {
                if (i == 0) {
                    System.out.println(str.charAt(i));
                } else {
                    System.out.print(str.charAt(i));
                }
            } if (i == 0) {
                    System.out.println(str.charAt(i));
                } else {
                    System.out.print(str.charAt(i));
                } i == 0 i 0 {
                    System.out.println(str.charAt(i));
                } System.out.println(str.charAt(i)) System.out.println System.out System System.out str.charAt(i) str.charAt str i {
                    System.out.print(str.charAt(i));
                } System.out.print(str.charAt(i)) System.out.print System.out System System.out str.charAt(i) str.charAt str i String[] args args public class Main {

    public static void main(String[] args) {
        try (Scanner scan = new Scanner(System.in)) {
            String str = scan.nextLine();
            int len = str.length();
            for (int i = len - 1; 0 <= i; i--) {
                if (i == 0) {
                    System.out.println(str.charAt(i));
                } else {
                    System.out.print(str.charAt(i));
                }
            }
        } catch (Exception e) {
            System.exit(0);
        }
    }
} public class Main {

    public static void main(String[] args) {
        try (Scanner scan = new Scanner(System.in)) {
            String str = scan.nextLine();
            int len = str.length();
            for (int i = len - 1; 0 <= i; i--) {
                if (i == 0) {
                    System.out.println(str.charAt(i));
                } else {
                    System.out.print(str.charAt(i));
                }
            }
        } 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)) {
            String str = scan.nextLine();
            int len = str.length();
            for (int i = len - 1; 0 <= i; i--) {
                if (i == 0) {
                    System.out.println(str.charAt(i));
                } else {
                    System.out.print(str.charAt(i));
                }
            }
        } catch (Exception e) {
            System.exit(0);
        }
    }
}