import java.util.*;
import java.io.*;

class Main {
    final private static BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
    final private static StringBuilder sb = new StringBuilder();

    public static void main(final String[] args) throws IOException {
        final String line = in.readLine();
        
        for (int i = line.length() - 1;  0 <= i; --i) {
            sb.append(line.charAt(i));
        }
        System.out.println(sb);
    }
} import java.util.*; util.* java import java.io.*; io.* java class Main {
    final private static BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
    final private static StringBuilder sb = new StringBuilder();

    public static void main(final String[] args) throws IOException {
        final String line = in.readLine();
        
        for (int i = line.length() - 1;  0 <= i; --i) {
            sb.append(line.charAt(i));
        }
        System.out.println(sb);
    }
} Main final private static BufferedReader in = new BufferedReader(new InputStreamReader(System.in)); in new BufferedReader(new InputStreamReader(System.in)) final private static StringBuilder sb = new StringBuilder(); sb new StringBuilder() public static void main(final String[] args) throws IOException {
        final String line = in.readLine();
        
        for (int i = line.length() - 1;  0 <= i; --i) {
            sb.append(line.charAt(i));
        }
        System.out.println(sb);
    } main {
        final String line = in.readLine();
        
        for (int i = line.length() - 1;  0 <= i; --i) {
            sb.append(line.charAt(i));
        }
        System.out.println(sb);
    } final String line = in.readLine(); line in.readLine() in.readLine in for (int i = line.length() - 1;  0 <= i; --i) {
            sb.append(line.charAt(i));
        } int i = line.length() - 1; int i = line.length() - 1; i line.length() - 1 line.length() line.length line 1 0 <= i 0 i --i --i i {
            sb.append(line.charAt(i));
        } {
            sb.append(line.charAt(i));
        } sb.append(line.charAt(i)) sb.append sb line.charAt(i) line.charAt line i System.out.println(sb) System.out.println System.out System System.out sb final String[] args args
import java.util.*;
import java.io.*;

class Main {
    final private static BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
    final private static StringBuilder sb = new StringBuilder();

    public static void main(final String[] args) throws IOException {
        final String line = in.readLine();
        
        for (int i = line.length() - 1;  0 <= i; --i) {
            sb.append(line.charAt(i));
        }
        System.out.println(sb);
    }
}