import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.lang.Exception;
import java.lang.System;

public class Main {
    public static void main(String[] a) throws Exception {
        BufferedReader r = new BufferedReader(new InputStreamReader(System.in));
        String s;

        while((s = r.readLine()) != null) {
            for(int i = s.length() - 1; i >= 0; i--) {
                System.out.print(s.charAt(i));
            }
            System.out.print("\n");
        }
    }
} import java.io.BufferedReader; BufferedReader java.io import java.io.InputStreamReader; InputStreamReader java.io import java.lang.Exception; Exception java.lang import java.lang.System; System java.lang public class Main {
    public static void main(String[] a) throws Exception {
        BufferedReader r = new BufferedReader(new InputStreamReader(System.in));
        String s;

        while((s = r.readLine()) != null) {
            for(int i = s.length() - 1; i >= 0; i--) {
                System.out.print(s.charAt(i));
            }
            System.out.print("\n");
        }
    }
} Main public static void main(String[] a) throws Exception {
        BufferedReader r = new BufferedReader(new InputStreamReader(System.in));
        String s;

        while((s = r.readLine()) != null) {
            for(int i = s.length() - 1; i >= 0; i--) {
                System.out.print(s.charAt(i));
            }
            System.out.print("\n");
        }
    } main {
        BufferedReader r = new BufferedReader(new InputStreamReader(System.in));
        String s;

        while((s = r.readLine()) != null) {
            for(int i = s.length() - 1; i >= 0; i--) {
                System.out.print(s.charAt(i));
            }
            System.out.print("\n");
        }
    } BufferedReader r = new BufferedReader(new InputStreamReader(System.in)); r new BufferedReader(new InputStreamReader(System.in)) String s; s while((s = r.readLine()) != null) {
            for(int i = s.length() - 1; i >= 0; i--) {
                System.out.print(s.charAt(i));
            }
            System.out.print("\n");
        } (s = r.readLine()) != null (s = r.readLine()) s r.readLine() r.readLine r null {
            for(int i = s.length() - 1; i >= 0; i--) {
                System.out.print(s.charAt(i));
            }
            System.out.print("\n");
        } for(int i = s.length() - 1; i >= 0; i--) {
                System.out.print(s.charAt(i));
            } int i = s.length() - 1; int i = s.length() - 1; i s.length() - 1 s.length() s.length s 1 i >= 0 i 0 i-- i-- i {
                System.out.print(s.charAt(i));
            } {
                System.out.print(s.charAt(i));
            } System.out.print(s.charAt(i)) System.out.print System.out System System.out s.charAt(i) s.charAt s i System.out.print("\n") System.out.print System.out System System.out "\n" String[] a a public class Main {
    public static void main(String[] a) throws Exception {
        BufferedReader r = new BufferedReader(new InputStreamReader(System.in));
        String s;

        while((s = r.readLine()) != null) {
            for(int i = s.length() - 1; i >= 0; i--) {
                System.out.print(s.charAt(i));
            }
            System.out.print("\n");
        }
    }
} public class Main {
    public static void main(String[] a) throws Exception {
        BufferedReader r = new BufferedReader(new InputStreamReader(System.in));
        String s;

        while((s = r.readLine()) != null) {
            for(int i = s.length() - 1; i >= 0; i--) {
                System.out.print(s.charAt(i));
            }
            System.out.print("\n");
        }
    }
} Main
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.lang.Exception;
import java.lang.System;

public class Main {
    public static void main(String[] a) throws Exception {
        BufferedReader r = new BufferedReader(new InputStreamReader(System.in));
        String s;

        while((s = r.readLine()) != null) {
            for(int i = s.length() - 1; i >= 0; i--) {
                System.out.print(s.charAt(i));
            }
            System.out.print("\n");
        }
    }
}