import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;


class Main{	
	
	public static void main (String[] args)throws IOException{
		InputStreamReader in = new InputStreamReader(System.in);
		BufferedReader reader = new BufferedReader(in);
		
		String name = reader.readLine();
		char[] data = name.toCharArray();
		
		for(int i=data.length-1;i>=0;i--){
			System.out.print(data[i]);
		}
		System.out.println();
		
	}
} import java.io.BufferedReader; BufferedReader java.io import java.io.IOException; IOException java.io import java.io.InputStreamReader; InputStreamReader java.io class Main{	
	
	public static void main (String[] args)throws IOException{
		InputStreamReader in = new InputStreamReader(System.in);
		BufferedReader reader = new BufferedReader(in);
		
		String name = reader.readLine();
		char[] data = name.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{
		InputStreamReader in = new InputStreamReader(System.in);
		BufferedReader reader = new BufferedReader(in);
		
		String name = reader.readLine();
		char[] data = name.toCharArray();
		
		for(int i=data.length-1;i>=0;i--){
			System.out.print(data[i]);
		}
		System.out.println();
		
	} main {
		InputStreamReader in = new InputStreamReader(System.in);
		BufferedReader reader = new BufferedReader(in);
		
		String name = reader.readLine();
		char[] data = name.toCharArray();
		
		for(int i=data.length-1;i>=0;i--){
			System.out.print(data[i]);
		}
		System.out.println();
		
	} InputStreamReader in = new InputStreamReader(System.in); in new InputStreamReader(System.in) BufferedReader reader = new BufferedReader(in); reader new BufferedReader(in) String name = reader.readLine(); name reader.readLine() reader.readLine reader char[] data = name.toCharArray(); data name.toCharArray() name.toCharArray name 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.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;


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