import java.util.Scanner;

class Main{
    public static void main(String[] a){
        Scanner s = new Scanner(System.in);

        String str = s.next();

        for(int i = str.length() - 1;i >= 0; i--){
            System.out.print(str.charAt(i));
        }
        System.out.println("");
    }
} import java.util.Scanner; Scanner java.util class Main{
    public static void main(String[] a){
        Scanner s = new Scanner(System.in);

        String str = s.next();

        for(int i = str.length() - 1;i >= 0; i--){
            System.out.print(str.charAt(i));
        }
        System.out.println("");
    }
} Main public static void main(String[] a){
        Scanner s = new Scanner(System.in);

        String str = s.next();

        for(int i = str.length() - 1;i >= 0; i--){
            System.out.print(str.charAt(i));
        }
        System.out.println("");
    } main {
        Scanner s = new Scanner(System.in);

        String str = s.next();

        for(int i = str.length() - 1;i >= 0; i--){
            System.out.print(str.charAt(i));
        }
        System.out.println("");
    } Scanner s = new Scanner(System.in); s new Scanner(System.in) String str = s.next(); str s.next() s.next s for(int i = str.length() - 1;i >= 0; i--){
            System.out.print(str.charAt(i));
        } int i = str.length() - 1; int i = str.length() - 1; i str.length() - 1 str.length() str.length str 1 i >= 0 i 0 i-- i-- i {
            System.out.print(str.charAt(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 System.out.println("") System.out.println System.out System System.out "" String[] a a
import java.util.Scanner;

class Main{
    public static void main(String[] a){
        Scanner s = new Scanner(System.in);

        String str = s.next();

        for(int i = str.length() - 1;i >= 0; i--){
            System.out.print(str.charAt(i));
        }
        System.out.println("");
    }
}