import java.util.Scanner;

class Main {

    public static void main(String[] args){
	Scanner stdin = new Scanner(System.in);
	String str = stdin.next();
	StringBuffer sb = new StringBuffer();
	for(int i = 0; i < str.length(); i++){
	    sb.append(str.charAt(str.length() - 1 - i));
	}
	System.out.println(sb.toString());
    }
} import java.util.Scanner; Scanner java.util class Main {

    public static void main(String[] args){
	Scanner stdin = new Scanner(System.in);
	String str = stdin.next();
	StringBuffer sb = new StringBuffer();
	for(int i = 0; i < str.length(); i++){
	    sb.append(str.charAt(str.length() - 1 - i));
	}
	System.out.println(sb.toString());
    }
} Main public static void main(String[] args){
	Scanner stdin = new Scanner(System.in);
	String str = stdin.next();
	StringBuffer sb = new StringBuffer();
	for(int i = 0; i < str.length(); i++){
	    sb.append(str.charAt(str.length() - 1 - i));
	}
	System.out.println(sb.toString());
    } main {
	Scanner stdin = new Scanner(System.in);
	String str = stdin.next();
	StringBuffer sb = new StringBuffer();
	for(int i = 0; i < str.length(); i++){
	    sb.append(str.charAt(str.length() - 1 - i));
	}
	System.out.println(sb.toString());
    } Scanner stdin = new Scanner(System.in); stdin new Scanner(System.in) String str = stdin.next(); str stdin.next() stdin.next stdin StringBuffer sb = new StringBuffer(); sb new StringBuffer() for(int i = 0; i < str.length(); i++){
	    sb.append(str.charAt(str.length() - 1 - i));
	} int i = 0; int i = 0; i 0 i < str.length() i str.length() str.length str i++ i++ i {
	    sb.append(str.charAt(str.length() - 1 - i));
	} {
	    sb.append(str.charAt(str.length() - 1 - i));
	} sb.append(str.charAt(str.length() - 1 - i)) sb.append sb str.charAt(str.length() - 1 - i) str.charAt str str.length() - 1 - i str.length() - 1 - i str.length() str.length str 1 i System.out.println(sb.toString()) System.out.println System.out System System.out sb.toString() sb.toString sb String[] args args
import java.util.Scanner;

class Main {

    public static void main(String[] args){
	Scanner stdin = new Scanner(System.in);
	String str = stdin.next();
	StringBuffer sb = new StringBuffer();
	for(int i = 0; i < str.length(); i++){
	    sb.append(str.charAt(str.length() - 1 - i));
	}
	System.out.println(sb.toString());
    }
}