import java.util.Scanner;

class Main{

    public static void main(String[] args){

	Scanner scan = new Scanner(System.in);

	String data = scan.next();

	for(int i = data.length() - 1; i >= 0; i--){
	    System.out.print(data.charAt(i));
	}

	System.out.println();
    }

} import java.util.Scanner; Scanner java.util class Main{

    public static void main(String[] args){

	Scanner scan = new Scanner(System.in);

	String data = scan.next();

	for(int i = data.length() - 1; i >= 0; i--){
	    System.out.print(data.charAt(i));
	}

	System.out.println();
    }

} Main public static void main(String[] args){

	Scanner scan = new Scanner(System.in);

	String data = scan.next();

	for(int i = data.length() - 1; i >= 0; i--){
	    System.out.print(data.charAt(i));
	}

	System.out.println();
    } main {

	Scanner scan = new Scanner(System.in);

	String data = scan.next();

	for(int i = data.length() - 1; i >= 0; i--){
	    System.out.print(data.charAt(i));
	}

	System.out.println();
    } Scanner scan = new Scanner(System.in); scan new Scanner(System.in) String data = scan.next(); data scan.next() scan.next scan for(int i = data.length() - 1; i >= 0; i--){
	    System.out.print(data.charAt(i));
	} int i = data.length() - 1; int i = data.length() - 1; i data.length() - 1 data.length() data.length data 1 i >= 0 i 0 i-- i-- i {
	    System.out.print(data.charAt(i));
	} {
	    System.out.print(data.charAt(i));
	} System.out.print(data.charAt(i)) System.out.print System.out System System.out data.charAt(i) data.charAt data i System.out.println() System.out.println System.out System System.out String[] args args
import java.util.Scanner;

class Main{

    public static void main(String[] args){

	Scanner scan = new Scanner(System.in);

	String data = scan.next();

	for(int i = data.length() - 1; i >= 0; i--){
	    System.out.print(data.charAt(i));
	}

	System.out.println();
    }

}