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

public class Main {
    public static void main(String[] args) {
        BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
        String input;
        try {
            input = reader.readLine();
            char[] inputCharArray = input.toCharArray();
            String out = "";
            for(int i=0; i<inputCharArray.length; i++){
                out += inputCharArray[inputCharArray.length - 1 - i];
            }
            System.out.println(out);
        } 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 reader = new BufferedReader(new InputStreamReader(System.in));
        String input;
        try {
            input = reader.readLine();
            char[] inputCharArray = input.toCharArray();
            String out = "";
            for(int i=0; i<inputCharArray.length; i++){
                out += inputCharArray[inputCharArray.length - 1 - i];
            }
            System.out.println(out);
        } catch (IOException e) {
            e.printStackTrace();
        }
    }
} Main public static void main(String[] args) {
        BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
        String input;
        try {
            input = reader.readLine();
            char[] inputCharArray = input.toCharArray();
            String out = "";
            for(int i=0; i<inputCharArray.length; i++){
                out += inputCharArray[inputCharArray.length - 1 - i];
            }
            System.out.println(out);
        } catch (IOException e) {
            e.printStackTrace();
        }
    } main {
        BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
        String input;
        try {
            input = reader.readLine();
            char[] inputCharArray = input.toCharArray();
            String out = "";
            for(int i=0; i<inputCharArray.length; i++){
                out += inputCharArray[inputCharArray.length - 1 - i];
            }
            System.out.println(out);
        } catch (IOException e) {
            e.printStackTrace();
        }
    } BufferedReader reader = new BufferedReader(new InputStreamReader(System.in)); reader new BufferedReader(new InputStreamReader(System.in)) String input; input try {
            input = reader.readLine();
            char[] inputCharArray = input.toCharArray();
            String out = "";
            for(int i=0; i<inputCharArray.length; i++){
                out += inputCharArray[inputCharArray.length - 1 - i];
            }
            System.out.println(out);
        } catch (IOException e) {
            e.printStackTrace();
        } catch (IOException e) {
            e.printStackTrace();
        } IOException e {
            e.printStackTrace();
        } e.printStackTrace() e.printStackTrace e {
            input = reader.readLine();
            char[] inputCharArray = input.toCharArray();
            String out = "";
            for(int i=0; i<inputCharArray.length; i++){
                out += inputCharArray[inputCharArray.length - 1 - i];
            }
            System.out.println(out);
        } input = reader.readLine() input reader.readLine() reader.readLine reader char[] inputCharArray = input.toCharArray(); inputCharArray input.toCharArray() input.toCharArray input String out = ""; out "" for(int i=0; i<inputCharArray.length; i++){
                out += inputCharArray[inputCharArray.length - 1 - i];
            } int i=0; int i=0; i 0 i<inputCharArray.length i inputCharArray.length inputCharArray inputCharArray.length i++ i++ i {
                out += inputCharArray[inputCharArray.length - 1 - i];
            } {
                out += inputCharArray[inputCharArray.length - 1 - i];
            } out += inputCharArray[inputCharArray.length - 1 - i] out inputCharArray[inputCharArray.length - 1 - i] inputCharArray inputCharArray.length - 1 - i inputCharArray.length - 1 - i inputCharArray.length inputCharArray inputCharArray.length 1 i System.out.println(out) System.out.println System.out System System.out out String[] args args public class Main {
    public static void main(String[] args) {
        BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
        String input;
        try {
            input = reader.readLine();
            char[] inputCharArray = input.toCharArray();
            String out = "";
            for(int i=0; i<inputCharArray.length; i++){
                out += inputCharArray[inputCharArray.length - 1 - i];
            }
            System.out.println(out);
        } catch (IOException e) {
            e.printStackTrace();
        }
    }
} public class Main {
    public static void main(String[] args) {
        BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
        String input;
        try {
            input = reader.readLine();
            char[] inputCharArray = input.toCharArray();
            String out = "";
            for(int i=0; i<inputCharArray.length; i++){
                out += inputCharArray[inputCharArray.length - 1 - i];
            }
            System.out.println(out);
        } 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 reader = new BufferedReader(new InputStreamReader(System.in));
        String input;
        try {
            input = reader.readLine();
            char[] inputCharArray = input.toCharArray();
            String out = "";
            for(int i=0; i<inputCharArray.length; i++){
                out += inputCharArray[inputCharArray.length - 1 - i];
            }
            System.out.println(out);
        } catch (IOException e) {
            e.printStackTrace();
        }
    }
}