
import java.util.Scanner;


public class Main {

    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        String input = scan.next();
        for(int i = input.length() - 1; i > -1; i--) {
            System.out.print(input.charAt(i));
        }
        System.out.println();
    }
    
} import java.util.Scanner; Scanner java.util public class Main {

    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        String input = scan.next();
        for(int i = input.length() - 1; i > -1; i--) {
            System.out.print(input.charAt(i));
        }
        System.out.println();
    }
    
} Main public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        String input = scan.next();
        for(int i = input.length() - 1; i > -1; i--) {
            System.out.print(input.charAt(i));
        }
        System.out.println();
    } main {
        Scanner scan = new Scanner(System.in);
        String input = scan.next();
        for(int i = input.length() - 1; i > -1; i--) {
            System.out.print(input.charAt(i));
        }
        System.out.println();
    } Scanner scan = new Scanner(System.in); scan new Scanner(System.in) String input = scan.next(); input scan.next() scan.next scan for(int i = input.length() - 1; i > -1; i--) {
            System.out.print(input.charAt(i));
        } int i = input.length() - 1; int i = input.length() - 1; i input.length() - 1 input.length() input.length input 1 i > -1 i -1 1 i-- i-- i {
            System.out.print(input.charAt(i));
        } {
            System.out.print(input.charAt(i));
        } System.out.print(input.charAt(i)) System.out.print System.out System System.out input.charAt(i) input.charAt input i System.out.println() System.out.println System.out System System.out String[] args args public class Main {

    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        String input = scan.next();
        for(int i = input.length() - 1; i > -1; i--) {
            System.out.print(input.charAt(i));
        }
        System.out.println();
    }
    
} public class Main {

    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        String input = scan.next();
        for(int i = input.length() - 1; i > -1; i--) {
            System.out.print(input.charAt(i));
        }
        System.out.println();
    }
    
} Main

import java.util.Scanner;


public class Main {

    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        String input = scan.next();
        for(int i = input.length() - 1; i > -1; i--) {
            System.out.print(input.charAt(i));
        }
        System.out.println();
    }
    
}