import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
 
public class Main {
    public static void main(String[] a) throws IOException {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String str = br.readLine();
        char[] data = str.toCharArray();
 
        char buf;
        for (int i = 0; i < data.length / 2; i++) {
            buf = data[i];
            data[i] = data[data.length - 1 - i];
            data[data.length - 1 - i] = buf;
        }
        System.out.println(data);
    }
} 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[] a) throws IOException {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String str = br.readLine();
        char[] data = str.toCharArray();
 
        char buf;
        for (int i = 0; i < data.length / 2; i++) {
            buf = data[i];
            data[i] = data[data.length - 1 - i];
            data[data.length - 1 - i] = buf;
        }
        System.out.println(data);
    }
} Main public static void main(String[] a) throws IOException {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String str = br.readLine();
        char[] data = str.toCharArray();
 
        char buf;
        for (int i = 0; i < data.length / 2; i++) {
            buf = data[i];
            data[i] = data[data.length - 1 - i];
            data[data.length - 1 - i] = buf;
        }
        System.out.println(data);
    } main {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String str = br.readLine();
        char[] data = str.toCharArray();
 
        char buf;
        for (int i = 0; i < data.length / 2; i++) {
            buf = data[i];
            data[i] = data[data.length - 1 - i];
            data[data.length - 1 - i] = buf;
        }
        System.out.println(data);
    } BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) String str = br.readLine(); str br.readLine() br.readLine br char[] data = str.toCharArray(); data str.toCharArray() str.toCharArray str char buf; buf for (int i = 0; i < data.length / 2; i++) {
            buf = data[i];
            data[i] = data[data.length - 1 - i];
            data[data.length - 1 - i] = buf;
        } int i = 0; int i = 0; i 0 i < data.length / 2 i data.length / 2 data.length data data.length 2 i++ i++ i {
            buf = data[i];
            data[i] = data[data.length - 1 - i];
            data[data.length - 1 - i] = buf;
        } {
            buf = data[i];
            data[i] = data[data.length - 1 - i];
            data[data.length - 1 - i] = buf;
        } buf = data[i] buf data[i] data i data[i] = data[data.length - 1 - i] data[i] data i data[data.length - 1 - i] data data.length - 1 - i data.length - 1 - i data.length data data.length 1 i data[data.length - 1 - i] = buf data[data.length - 1 - i] data data.length - 1 - i data.length - 1 - i data.length data data.length 1 i buf System.out.println(data) System.out.println System.out System System.out data String[] a a public class Main {
    public static void main(String[] a) throws IOException {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String str = br.readLine();
        char[] data = str.toCharArray();
 
        char buf;
        for (int i = 0; i < data.length / 2; i++) {
            buf = data[i];
            data[i] = data[data.length - 1 - i];
            data[data.length - 1 - i] = buf;
        }
        System.out.println(data);
    }
} public class Main {
    public static void main(String[] a) throws IOException {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String str = br.readLine();
        char[] data = str.toCharArray();
 
        char buf;
        for (int i = 0; i < data.length / 2; i++) {
            buf = data[i];
            data[i] = data[data.length - 1 - i];
            data[data.length - 1 - i] = buf;
        }
        System.out.println(data);
    }
} Main
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
 
public class Main {
    public static void main(String[] a) throws IOException {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String str = br.readLine();
        char[] data = str.toCharArray();
 
        char buf;
        for (int i = 0; i < data.length / 2; i++) {
            buf = data[i];
            data[i] = data[data.length - 1 - i];
            data[data.length - 1 - i] = buf;
        }
        System.out.println(data);
    }
}