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

public class Main {

    public static void main(String[] args) {

        BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
        String input = null;

        try {
            while ((input = in.readLine()) != null) {

                char[] inputChar = input.toCharArray();

                StringBuffer result = new StringBuffer();

                for (int i = inputChar.length - 1; i >= 0; i--) {
                    result.append(inputChar[i]);
                }

                System.out.println(result.toString());
            }
        } catch (IOException e) {
            e.printStackTrace();
        } finally {
            try {
                in.close();
            } catch (IOException e) {
                e.printStackTrace();
            }
        }
    }
} 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) {

        BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
        String input = null;

        try {
            while ((input = in.readLine()) != null) {

                char[] inputChar = input.toCharArray();

                StringBuffer result = new StringBuffer();

                for (int i = inputChar.length - 1; i >= 0; i--) {
                    result.append(inputChar[i]);
                }

                System.out.println(result.toString());
            }
        } catch (IOException e) {
            e.printStackTrace();
        } finally {
            try {
                in.close();
            } catch (IOException e) {
                e.printStackTrace();
            }
        }
    }
} Main public static void main(String[] args) {

        BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
        String input = null;

        try {
            while ((input = in.readLine()) != null) {

                char[] inputChar = input.toCharArray();

                StringBuffer result = new StringBuffer();

                for (int i = inputChar.length - 1; i >= 0; i--) {
                    result.append(inputChar[i]);
                }

                System.out.println(result.toString());
            }
        } catch (IOException e) {
            e.printStackTrace();
        } finally {
            try {
                in.close();
            } catch (IOException e) {
                e.printStackTrace();
            }
        }
    } main {

        BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
        String input = null;

        try {
            while ((input = in.readLine()) != null) {

                char[] inputChar = input.toCharArray();

                StringBuffer result = new StringBuffer();

                for (int i = inputChar.length - 1; i >= 0; i--) {
                    result.append(inputChar[i]);
                }

                System.out.println(result.toString());
            }
        } catch (IOException e) {
            e.printStackTrace();
        } finally {
            try {
                in.close();
            } catch (IOException e) {
                e.printStackTrace();
            }
        }
    } BufferedReader in = new BufferedReader(new InputStreamReader(System.in)); in new BufferedReader(new InputStreamReader(System.in)) String input = null; input null try {
            while ((input = in.readLine()) != null) {

                char[] inputChar = input.toCharArray();

                StringBuffer result = new StringBuffer();

                for (int i = inputChar.length - 1; i >= 0; i--) {
                    result.append(inputChar[i]);
                }

                System.out.println(result.toString());
            }
        } catch (IOException e) {
            e.printStackTrace();
        } finally {
            try {
                in.close();
            } catch (IOException e) {
                e.printStackTrace();
            }
        } catch (IOException e) {
            e.printStackTrace();
        } IOException e {
            e.printStackTrace();
        } e.printStackTrace() e.printStackTrace e {
            try {
                in.close();
            } catch (IOException e) {
                e.printStackTrace();
            }
        } try {
                in.close();
            } catch (IOException e) {
                e.printStackTrace();
            } catch (IOException e) {
                e.printStackTrace();
            } IOException e {
                e.printStackTrace();
            } e.printStackTrace() e.printStackTrace e {
                in.close();
            } in.close() in.close in {
            while ((input = in.readLine()) != null) {

                char[] inputChar = input.toCharArray();

                StringBuffer result = new StringBuffer();

                for (int i = inputChar.length - 1; i >= 0; i--) {
                    result.append(inputChar[i]);
                }

                System.out.println(result.toString());
            }
        } while ((input = in.readLine()) != null) {

                char[] inputChar = input.toCharArray();

                StringBuffer result = new StringBuffer();

                for (int i = inputChar.length - 1; i >= 0; i--) {
                    result.append(inputChar[i]);
                }

                System.out.println(result.toString());
            } (input = in.readLine()) != null (input = in.readLine()) input in.readLine() in.readLine in null {

                char[] inputChar = input.toCharArray();

                StringBuffer result = new StringBuffer();

                for (int i = inputChar.length - 1; i >= 0; i--) {
                    result.append(inputChar[i]);
                }

                System.out.println(result.toString());
            } char[] inputChar = input.toCharArray(); inputChar input.toCharArray() input.toCharArray input StringBuffer result = new StringBuffer(); result new StringBuffer() for (int i = inputChar.length - 1; i >= 0; i--) {
                    result.append(inputChar[i]);
                } int i = inputChar.length - 1; int i = inputChar.length - 1; i inputChar.length - 1 inputChar.length inputChar inputChar.length 1 i >= 0 i 0 i-- i-- i {
                    result.append(inputChar[i]);
                } {
                    result.append(inputChar[i]);
                } result.append(inputChar[i]) result.append result inputChar[i] inputChar i System.out.println(result.toString()) System.out.println System.out System System.out result.toString() result.toString result String[] args args public class Main {

    public static void main(String[] args) {

        BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
        String input = null;

        try {
            while ((input = in.readLine()) != null) {

                char[] inputChar = input.toCharArray();

                StringBuffer result = new StringBuffer();

                for (int i = inputChar.length - 1; i >= 0; i--) {
                    result.append(inputChar[i]);
                }

                System.out.println(result.toString());
            }
        } catch (IOException e) {
            e.printStackTrace();
        } finally {
            try {
                in.close();
            } catch (IOException e) {
                e.printStackTrace();
            }
        }
    }
} public class Main {

    public static void main(String[] args) {

        BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
        String input = null;

        try {
            while ((input = in.readLine()) != null) {

                char[] inputChar = input.toCharArray();

                StringBuffer result = new StringBuffer();

                for (int i = inputChar.length - 1; i >= 0; i--) {
                    result.append(inputChar[i]);
                }

                System.out.println(result.toString());
            }
        } catch (IOException e) {
            e.printStackTrace();
        } finally {
            try {
                in.close();
            } catch (IOException e) {
                e.printStackTrace();
            }
        }
    }
} Main
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

public class Main {

    public static void main(String[] args) {

        BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
        String input = null;

        try {
            while ((input = in.readLine()) != null) {

                char[] inputChar = input.toCharArray();

                StringBuffer result = new StringBuffer();

                for (int i = inputChar.length - 1; i >= 0; i--) {
                    result.append(inputChar[i]);
                }

                System.out.println(result.toString());
            }
        } catch (IOException e) {
            e.printStackTrace();
        } finally {
            try {
                in.close();
            } catch (IOException e) {
                e.printStackTrace();
            }
        }
    }
}