
import java.io.*;

public class Main {

    public static void main(String[] argv) throws IOException {
        //*
        BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
        while(true) {
            String s = in.readLine();
            if (s == null) {
                break;
            }
            f(s);
        }
        //*/
    }

    public static void f(String s) {
        char[] c = s.toCharArray();
        char[] r = new char[c.length];
        for(int i = 0; i < c.length; i++) {
            r[c.length - i - 1] = c[i];
        }
        System.out.println(r);
    }
} import java.io.*; io.* java public class Main {

    public static void main(String[] argv) throws IOException {
        //*
        BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
        while(true) {
            String s = in.readLine();
            if (s == null) {
                break;
            }
            f(s);
        }
        //*/
    }

    public static void f(String s) {
        char[] c = s.toCharArray();
        char[] r = new char[c.length];
        for(int i = 0; i < c.length; i++) {
            r[c.length - i - 1] = c[i];
        }
        System.out.println(r);
    }
} Main public static void main(String[] argv) throws IOException {
        //*
        BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
        while(true) {
            String s = in.readLine();
            if (s == null) {
                break;
            }
            f(s);
        }
        //*/
    } main {
        //*
        BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
        while(true) {
            String s = in.readLine();
            if (s == null) {
                break;
            }
            f(s);
        }
        //*/
    } BufferedReader in = new BufferedReader(new InputStreamReader(System.in)); in new BufferedReader(new InputStreamReader(System.in)) while(true) {
            String s = in.readLine();
            if (s == null) {
                break;
            }
            f(s);
        } true {
            String s = in.readLine();
            if (s == null) {
                break;
            }
            f(s);
        } String s = in.readLine(); s in.readLine() in.readLine in if (s == null) {
                break;
            } s == null s null {
                break;
            } break; f(s) f s String[] argv argv public static void f(String s) {
        char[] c = s.toCharArray();
        char[] r = new char[c.length];
        for(int i = 0; i < c.length; i++) {
            r[c.length - i - 1] = c[i];
        }
        System.out.println(r);
    } f {
        char[] c = s.toCharArray();
        char[] r = new char[c.length];
        for(int i = 0; i < c.length; i++) {
            r[c.length - i - 1] = c[i];
        }
        System.out.println(r);
    } char[] c = s.toCharArray(); c s.toCharArray() s.toCharArray s char[] r = new char[c.length]; r new char[c.length] c.length c c.length for(int i = 0; i < c.length; i++) {
            r[c.length - i - 1] = c[i];
        } int i = 0; int i = 0; i 0 i < c.length i c.length c c.length i++ i++ i {
            r[c.length - i - 1] = c[i];
        } {
            r[c.length - i - 1] = c[i];
        } r[c.length - i - 1] = c[i] r[c.length - i - 1] r c.length - i - 1 c.length - i - 1 c.length c c.length i 1 c[i] c i System.out.println(r) System.out.println System.out System System.out r String s s public class Main {

    public static void main(String[] argv) throws IOException {
        //*
        BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
        while(true) {
            String s = in.readLine();
            if (s == null) {
                break;
            }
            f(s);
        }
        //*/
    }

    public static void f(String s) {
        char[] c = s.toCharArray();
        char[] r = new char[c.length];
        for(int i = 0; i < c.length; i++) {
            r[c.length - i - 1] = c[i];
        }
        System.out.println(r);
    }
} public class Main {

    public static void main(String[] argv) throws IOException {
        //*
        BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
        while(true) {
            String s = in.readLine();
            if (s == null) {
                break;
            }
            f(s);
        }
        //*/
    }

    public static void f(String s) {
        char[] c = s.toCharArray();
        char[] r = new char[c.length];
        for(int i = 0; i < c.length; i++) {
            r[c.length - i - 1] = c[i];
        }
        System.out.println(r);
    }
} Main

import java.io.*;

public class Main {

    public static void main(String[] argv) throws IOException {
        //*
        BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
        while(true) {
            String s = in.readLine();
            if (s == null) {
                break;
            }
            f(s);
        }
        //*/
    }

    public static void f(String s) {
        char[] c = s.toCharArray();
        char[] r = new char[c.length];
        for(int i = 0; i < c.length; i++) {
            r[c.length - i - 1] = c[i];
        }
        System.out.println(r);
    }
}