import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

public class Main {
    public static void main(String[] args) throws IOException {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String line = "";

        while ((line = br.readLine()) != null && !line.isEmpty()) {
            int len = line.length();
            char[] str = new char[len];

            len--;
            for (char c : line.toCharArray()) {
                str[len--] = c;
            }
            System.out.println(new String(str));
        }
    }
} import java.io.BufferedReader; BufferedReader java.io import java.io.IOException; IOException java.io import java.io.InputStreamReader; InputStreamReader java.io public class Main {
    public static void main(String[] args) throws IOException {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String line = "";

        while ((line = br.readLine()) != null && !line.isEmpty()) {
            int len = line.length();
            char[] str = new char[len];

            len--;
            for (char c : line.toCharArray()) {
                str[len--] = c;
            }
            System.out.println(new String(str));
        }
    }
} Main public static void main(String[] args) throws IOException {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String line = "";

        while ((line = br.readLine()) != null && !line.isEmpty()) {
            int len = line.length();
            char[] str = new char[len];

            len--;
            for (char c : line.toCharArray()) {
                str[len--] = c;
            }
            System.out.println(new String(str));
        }
    } main {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String line = "";

        while ((line = br.readLine()) != null && !line.isEmpty()) {
            int len = line.length();
            char[] str = new char[len];

            len--;
            for (char c : line.toCharArray()) {
                str[len--] = c;
            }
            System.out.println(new String(str));
        }
    } BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) String line = ""; line "" while ((line = br.readLine()) != null && !line.isEmpty()) {
            int len = line.length();
            char[] str = new char[len];

            len--;
            for (char c : line.toCharArray()) {
                str[len--] = c;
            }
            System.out.println(new String(str));
        } (line = br.readLine()) != null && !line.isEmpty() (line = br.readLine()) != null (line = br.readLine()) line br.readLine() br.readLine br null !line.isEmpty() line.isEmpty() line.isEmpty line {
            int len = line.length();
            char[] str = new char[len];

            len--;
            for (char c : line.toCharArray()) {
                str[len--] = c;
            }
            System.out.println(new String(str));
        } int len = line.length(); len line.length() line.length line char[] str = new char[len]; str new char[len] len len-- len for (char c : line.toCharArray()) {
                str[len--] = c;
            } char c line.toCharArray() line.toCharArray line {
                str[len--] = c;
            } {
                str[len--] = c;
            } str[len--] = c str[len--] str len-- len c System.out.println(new String(str)) System.out.println System.out System System.out new String(str) String[] args args public class Main {
    public static void main(String[] args) throws IOException {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String line = "";

        while ((line = br.readLine()) != null && !line.isEmpty()) {
            int len = line.length();
            char[] str = new char[len];

            len--;
            for (char c : line.toCharArray()) {
                str[len--] = c;
            }
            System.out.println(new String(str));
        }
    }
} public class Main {
    public static void main(String[] args) throws IOException {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String line = "";

        while ((line = br.readLine()) != null && !line.isEmpty()) {
            int len = line.length();
            char[] str = new char[len];

            len--;
            for (char c : line.toCharArray()) {
                str[len--] = c;
            }
            System.out.println(new String(str));
        }
    }
} Main
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

public class Main {
    public static void main(String[] args) throws IOException {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String line = "";

        while ((line = br.readLine()) != null && !line.isEmpty()) {
            int len = line.length();
            char[] str = new char[len];

            len--;
            for (char c : line.toCharArray()) {
                str[len--] = c;
            }
            System.out.println(new String(str));
        }
    }
}