import java.util.Scanner;

class Main {
    public static void main (String args[]) {
	Scanner scan = new Scanner(System.in);
	String c = scan.next(), str = "";

	for (int i=0; i<c.length(); i++) {
	    str = c.substring(i,i+1) + str; 
	}

	System.out.println(str);
    }
} import java.util.Scanner; Scanner java.util class Main {
    public static void main (String args[]) {
	Scanner scan = new Scanner(System.in);
	String c = scan.next(), str = "";

	for (int i=0; i<c.length(); i++) {
	    str = c.substring(i,i+1) + str; 
	}

	System.out.println(str);
    }
} Main public static void main (String args[]) {
	Scanner scan = new Scanner(System.in);
	String c = scan.next(), str = "";

	for (int i=0; i<c.length(); i++) {
	    str = c.substring(i,i+1) + str; 
	}

	System.out.println(str);
    } main {
	Scanner scan = new Scanner(System.in);
	String c = scan.next(), str = "";

	for (int i=0; i<c.length(); i++) {
	    str = c.substring(i,i+1) + str; 
	}

	System.out.println(str);
    } Scanner scan = new Scanner(System.in); scan new Scanner(System.in) String c = scan.next() c scan.next() scan.next scan str = ""; str "" for (int i=0; i<c.length(); i++) {
	    str = c.substring(i,i+1) + str; 
	} int i=0; int i=0; i 0 i<c.length() i c.length() c.length c i++ i++ i {
	    str = c.substring(i,i+1) + str; 
	} {
	    str = c.substring(i,i+1) + str; 
	} str = c.substring(i,i+1) + str str c.substring(i,i+1) + str c.substring(i,i+1) c.substring c i i+1 i 1 str System.out.println(str) System.out.println System.out System System.out str String args[] args
import java.util.Scanner;

class Main {
    public static void main (String args[]) {
	Scanner scan = new Scanner(System.in);
	String c = scan.next(), str = "";

	for (int i=0; i<c.length(); i++) {
	    str = c.substring(i,i+1) + str; 
	}

	System.out.println(str);
    }
}