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

public class Main {

	public static void main(String[] args) throws IOException{
		try{
			BufferedReader br = new BufferedReader (new InputStreamReader (System.in));
			String chain=br.readLine();
			
			for(int i=chain.length()-1; i>=0;i--){
				System.out.print(chain.charAt(i));
	        }
	        System.out.println("");
		}catch (IOException e) {
                     System.out.println(e);
                }
	}
} import java.io.BufferedReader; BufferedReader java.io import java.io.IOException; IOException java.io import java.io.InputStreamReader; InputStreamReader java.io public class Main {

	public static void main(String[] args) throws IOException{
		try{
			BufferedReader br = new BufferedReader (new InputStreamReader (System.in));
			String chain=br.readLine();
			
			for(int i=chain.length()-1; i>=0;i--){
				System.out.print(chain.charAt(i));
	        }
	        System.out.println("");
		}catch (IOException e) {
                     System.out.println(e);
                }
	}
} Main public static void main(String[] args) throws IOException{
		try{
			BufferedReader br = new BufferedReader (new InputStreamReader (System.in));
			String chain=br.readLine();
			
			for(int i=chain.length()-1; i>=0;i--){
				System.out.print(chain.charAt(i));
	        }
	        System.out.println("");
		}catch (IOException e) {
                     System.out.println(e);
                }
	} main {
		try{
			BufferedReader br = new BufferedReader (new InputStreamReader (System.in));
			String chain=br.readLine();
			
			for(int i=chain.length()-1; i>=0;i--){
				System.out.print(chain.charAt(i));
	        }
	        System.out.println("");
		}catch (IOException e) {
                     System.out.println(e);
                }
	} try{
			BufferedReader br = new BufferedReader (new InputStreamReader (System.in));
			String chain=br.readLine();
			
			for(int i=chain.length()-1; i>=0;i--){
				System.out.print(chain.charAt(i));
	        }
	        System.out.println("");
		}catch (IOException e) {
                     System.out.println(e);
                } catch (IOException e) {
                     System.out.println(e);
                } IOException e {
                     System.out.println(e);
                } System.out.println(e) System.out.println System.out System System.out e {
			BufferedReader br = new BufferedReader (new InputStreamReader (System.in));
			String chain=br.readLine();
			
			for(int i=chain.length()-1; i>=0;i--){
				System.out.print(chain.charAt(i));
	        }
	        System.out.println("");
		} BufferedReader br = new BufferedReader (new InputStreamReader (System.in)); br new BufferedReader (new InputStreamReader (System.in)) String chain=br.readLine(); chain br.readLine() br.readLine br for(int i=chain.length()-1; i>=0;i--){
				System.out.print(chain.charAt(i));
	        } int i=chain.length()-1; int i=chain.length()-1; i chain.length()-1 chain.length() chain.length chain 1 i>=0 i 0 i-- i-- i {
				System.out.print(chain.charAt(i));
	        } {
				System.out.print(chain.charAt(i));
	        } System.out.print(chain.charAt(i)) System.out.print System.out System System.out chain.charAt(i) chain.charAt chain i System.out.println("") System.out.println System.out System System.out "" String[] args args public class Main {

	public static void main(String[] args) throws IOException{
		try{
			BufferedReader br = new BufferedReader (new InputStreamReader (System.in));
			String chain=br.readLine();
			
			for(int i=chain.length()-1; i>=0;i--){
				System.out.print(chain.charAt(i));
	        }
	        System.out.println("");
		}catch (IOException e) {
                     System.out.println(e);
                }
	}
} public class Main {

	public static void main(String[] args) throws IOException{
		try{
			BufferedReader br = new BufferedReader (new InputStreamReader (System.in));
			String chain=br.readLine();
			
			for(int i=chain.length()-1; i>=0;i--){
				System.out.print(chain.charAt(i));
	        }
	        System.out.println("");
		}catch (IOException e) {
                     System.out.println(e);
                }
	}
} Main
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

public class Main {

	public static void main(String[] args) throws IOException{
		try{
			BufferedReader br = new BufferedReader (new InputStreamReader (System.in));
			String chain=br.readLine();
			
			for(int i=chain.length()-1; i>=0;i--){
				System.out.print(chain.charAt(i));
	        }
	        System.out.println("");
		}catch (IOException e) {
                     System.out.println(e);
                }
	}
}