import java.util.Scanner;

public class Main {
    public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
        String s = sc.next();
        int l = s.length();
        StringBuilder sb = new StringBuilder();
        for (int i = l - 1; i > -1; i--) {
            sb.append(s.charAt(i));
        }
        System.out.println(sb.toString());
    }
} import java.util.Scanner; Scanner java.util public class Main {
    public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
        String s = sc.next();
        int l = s.length();
        StringBuilder sb = new StringBuilder();
        for (int i = l - 1; i > -1; i--) {
            sb.append(s.charAt(i));
        }
        System.out.println(sb.toString());
    }
} Main public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
        String s = sc.next();
        int l = s.length();
        StringBuilder sb = new StringBuilder();
        for (int i = l - 1; i > -1; i--) {
            sb.append(s.charAt(i));
        }
        System.out.println(sb.toString());
    } main {
        Scanner sc = new Scanner(System.in);
        String s = sc.next();
        int l = s.length();
        StringBuilder sb = new StringBuilder();
        for (int i = l - 1; i > -1; i--) {
            sb.append(s.charAt(i));
        }
        System.out.println(sb.toString());
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String s = sc.next(); s sc.next() sc.next sc int l = s.length(); l s.length() s.length s StringBuilder sb = new StringBuilder(); sb new StringBuilder() for (int i = l - 1; i > -1; i--) {
            sb.append(s.charAt(i));
        } int i = l - 1; int i = l - 1; i l - 1 l 1 i > -1 i -1 1 i-- i-- i {
            sb.append(s.charAt(i));
        } {
            sb.append(s.charAt(i));
        } sb.append(s.charAt(i)) sb.append sb s.charAt(i) s.charAt s i System.out.println(sb.toString()) System.out.println System.out System System.out sb.toString() sb.toString sb String[] args args public class Main {
    public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
        String s = sc.next();
        int l = s.length();
        StringBuilder sb = new StringBuilder();
        for (int i = l - 1; i > -1; i--) {
            sb.append(s.charAt(i));
        }
        System.out.println(sb.toString());
    }
} public class Main {
    public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
        String s = sc.next();
        int l = s.length();
        StringBuilder sb = new StringBuilder();
        for (int i = l - 1; i > -1; i--) {
            sb.append(s.charAt(i));
        }
        System.out.println(sb.toString());
    }
} Main
import java.util.Scanner;

public class Main {
    public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
        String s = sc.next();
        int l = s.length();
        StringBuilder sb = new StringBuilder();
        for (int i = l - 1; i > -1; i--) {
            sb.append(s.charAt(i));
        }
        System.out.println(sb.toString());
    }
}