import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String[] req = sc.nextLine().split("");
        StringBuilder sb = new StringBuilder();
        for (int i = req.length; i > 0; i--) {
            sb.append(req[i - 1]);
        }
        System.out.println(sb.toString());
    }
} import java.util.Scanner; Scanner java.util public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String[] req = sc.nextLine().split("");
        StringBuilder sb = new StringBuilder();
        for (int i = req.length; i > 0; i--) {
            sb.append(req[i - 1]);
        }
        System.out.println(sb.toString());
    }
} Main public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String[] req = sc.nextLine().split("");
        StringBuilder sb = new StringBuilder();
        for (int i = req.length; i > 0; i--) {
            sb.append(req[i - 1]);
        }
        System.out.println(sb.toString());
    } main {
        Scanner sc = new Scanner(System.in);
        String[] req = sc.nextLine().split("");
        StringBuilder sb = new StringBuilder();
        for (int i = req.length; i > 0; i--) {
            sb.append(req[i - 1]);
        }
        System.out.println(sb.toString());
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String[] req = sc.nextLine().split(""); req sc.nextLine().split("") sc.nextLine().split sc.nextLine() sc.nextLine sc "" StringBuilder sb = new StringBuilder(); sb new StringBuilder() for (int i = req.length; i > 0; i--) {
            sb.append(req[i - 1]);
        } int i = req.length; int i = req.length; i req.length req req.length i > 0 i 0 i-- i-- i {
            sb.append(req[i - 1]);
        } {
            sb.append(req[i - 1]);
        } sb.append(req[i - 1]) sb.append sb req[i - 1] req i - 1 i 1 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) {
        Scanner sc = new Scanner(System.in);
        String[] req = sc.nextLine().split("");
        StringBuilder sb = new StringBuilder();
        for (int i = req.length; i > 0; i--) {
            sb.append(req[i - 1]);
        }
        System.out.println(sb.toString());
    }
} public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String[] req = sc.nextLine().split("");
        StringBuilder sb = new StringBuilder();
        for (int i = req.length; i > 0; i--) {
            sb.append(req[i - 1]);
        }
        System.out.println(sb.toString());
    }
} Main
import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String[] req = sc.nextLine().split("");
        StringBuilder sb = new StringBuilder();
        for (int i = req.length; i > 0; i--) {
            sb.append(req[i - 1]);
        }
        System.out.println(sb.toString());
    }
}