import java.io.*;
import java.util.ArrayList;
import java.util.Collections;

class Main {
    public static void main(String[] args) throws IOException {
	    	BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
            String str = reader.readLine();
            StringBuffer sb = new StringBuffer(str);
            System.out.println(sb.reverse());
    }
} import java.io.*; io.* java import java.util.ArrayList; ArrayList java.util import java.util.Collections; Collections java.util class Main {
    public static void main(String[] args) throws IOException {
	    	BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
            String str = reader.readLine();
            StringBuffer sb = new StringBuffer(str);
            System.out.println(sb.reverse());
    }
} Main public static void main(String[] args) throws IOException {
	    	BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
            String str = reader.readLine();
            StringBuffer sb = new StringBuffer(str);
            System.out.println(sb.reverse());
    } main {
	    	BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
            String str = reader.readLine();
            StringBuffer sb = new StringBuffer(str);
            System.out.println(sb.reverse());
    } BufferedReader reader = new BufferedReader(new InputStreamReader(System.in)); reader new BufferedReader(new InputStreamReader(System.in)) String str = reader.readLine(); str reader.readLine() reader.readLine reader StringBuffer sb = new StringBuffer(str); sb new StringBuffer(str) System.out.println(sb.reverse()) System.out.println System.out System System.out sb.reverse() sb.reverse sb String[] args args
import java.io.*;
import java.util.ArrayList;
import java.util.Collections;

class Main {
    public static void main(String[] args) throws IOException {
	    	BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
            String str = reader.readLine();
            StringBuffer sb = new StringBuffer(str);
            System.out.println(sb.reverse());
    }
}