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()) {
            char[] str = line.toCharArray();
            char c;
            int i = 0, j = str.length - 1;
            while (i < j) {
                c = str[i];
                str[i] = str[j];
                str[j] = c;
                i++;
                j--;
            }
            System.out.println(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()) {
            char[] str = line.toCharArray();
            char c;
            int i = 0, j = str.length - 1;
            while (i < j) {
                c = str[i];
                str[i] = str[j];
                str[j] = c;
                i++;
                j--;
            }
            System.out.println(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()) {
            char[] str = line.toCharArray();
            char c;
            int i = 0, j = str.length - 1;
            while (i < j) {
                c = str[i];
                str[i] = str[j];
                str[j] = c;
                i++;
                j--;
            }
            System.out.println(str);
        }
    } main {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String line = "";

        while ((line = br.readLine()) != null && !line.isEmpty()) {
            char[] str = line.toCharArray();
            char c;
            int i = 0, j = str.length - 1;
            while (i < j) {
                c = str[i];
                str[i] = str[j];
                str[j] = c;
                i++;
                j--;
            }
            System.out.println(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()) {
            char[] str = line.toCharArray();
            char c;
            int i = 0, j = str.length - 1;
            while (i < j) {
                c = str[i];
                str[i] = str[j];
                str[j] = c;
                i++;
                j--;
            }
            System.out.println(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 {
            char[] str = line.toCharArray();
            char c;
            int i = 0, j = str.length - 1;
            while (i < j) {
                c = str[i];
                str[i] = str[j];
                str[j] = c;
                i++;
                j--;
            }
            System.out.println(str);
        } char[] str = line.toCharArray(); str line.toCharArray() line.toCharArray line char c; c int i = 0 i 0 j = str.length - 1; j str.length - 1 str.length str str.length 1 while (i < j) {
                c = str[i];
                str[i] = str[j];
                str[j] = c;
                i++;
                j--;
            } i < j i j {
                c = str[i];
                str[i] = str[j];
                str[j] = c;
                i++;
                j--;
            } c = str[i] c str[i] str i str[i] = str[j] str[i] str i str[j] str j str[j] = c str[j] str j c i++ i j-- j System.out.println(str) System.out.println System.out System System.out 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()) {
            char[] str = line.toCharArray();
            char c;
            int i = 0, j = str.length - 1;
            while (i < j) {
                c = str[i];
                str[i] = str[j];
                str[j] = c;
                i++;
                j--;
            }
            System.out.println(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()) {
            char[] str = line.toCharArray();
            char c;
            int i = 0, j = str.length - 1;
            while (i < j) {
                c = str[i];
                str[i] = str[j];
                str[j] = c;
                i++;
                j--;
            }
            System.out.println(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()) {
            char[] str = line.toCharArray();
            char c;
            int i = 0, j = str.length - 1;
            while (i < j) {
                c = str[i];
                str[i] = str[j];
                str[j] = c;
                i++;
                j--;
            }
            System.out.println(str);
        }
    }
}