import java.io.*;
class Main{
    public static void main(String[] args) throws IOException{

	BufferedReader br=
	    new BufferedReader(new InputStreamReader(System.in));
	String buf;
	buf=br.readLine();
	char[] data=buf.toCharArray();
	for(int i=(data.length-1);i>=0;i--){
	    System.out.print(data[i]);
	}
	System.out.println();
    }
} import java.io.*; io.* java class Main{
    public static void main(String[] args) throws IOException{

	BufferedReader br=
	    new BufferedReader(new InputStreamReader(System.in));
	String buf;
	buf=br.readLine();
	char[] data=buf.toCharArray();
	for(int i=(data.length-1);i>=0;i--){
	    System.out.print(data[i]);
	}
	System.out.println();
    }
} Main public static void main(String[] args) throws IOException{

	BufferedReader br=
	    new BufferedReader(new InputStreamReader(System.in));
	String buf;
	buf=br.readLine();
	char[] data=buf.toCharArray();
	for(int i=(data.length-1);i>=0;i--){
	    System.out.print(data[i]);
	}
	System.out.println();
    } main {

	BufferedReader br=
	    new BufferedReader(new InputStreamReader(System.in));
	String buf;
	buf=br.readLine();
	char[] data=buf.toCharArray();
	for(int i=(data.length-1);i>=0;i--){
	    System.out.print(data[i]);
	}
	System.out.println();
    } BufferedReader br=
	    new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) String buf; buf buf=br.readLine() buf br.readLine() br.readLine br char[] data=buf.toCharArray(); data buf.toCharArray() buf.toCharArray buf for(int i=(data.length-1);i>=0;i--){
	    System.out.print(data[i]);
	} int i=(data.length-1); int i=(data.length-1); i (data.length-1) data.length data data.length 1 i>=0 i 0 i-- i-- i {
	    System.out.print(data[i]);
	} {
	    System.out.print(data[i]);
	} System.out.print(data[i]) System.out.print System.out System System.out data[i] data i System.out.println() System.out.println System.out System System.out String[] args args
import java.io.*;
class Main{
    public static void main(String[] args) throws IOException{

	BufferedReader br=
	    new BufferedReader(new InputStreamReader(System.in));
	String buf;
	buf=br.readLine();
	char[] data=buf.toCharArray();
	for(int i=(data.length-1);i>=0;i--){
	    System.out.print(data[i]);
	}
	System.out.println();
    }
}