import java.io.IOException;
import java.util.Scanner;

public class Main{

	public static void main(String[] args) throws IOException {
		Scanner scan = new Scanner(System.in);
		String str = scan.nextLine();
		char charArray[] = str.toCharArray();
		for (int i = charArray.length - 1;i >= 0 ; i--) {
			System.out.print(charArray[i]);
			
		}
		System.out.println();
		
	}
	
} import java.io.IOException; IOException java.io import java.util.Scanner; Scanner java.util public class Main{

	public static void main(String[] args) throws IOException {
		Scanner scan = new Scanner(System.in);
		String str = scan.nextLine();
		char charArray[] = str.toCharArray();
		for (int i = charArray.length - 1;i >= 0 ; i--) {
			System.out.print(charArray[i]);
			
		}
		System.out.println();
		
	}
	
} Main public static void main(String[] args) throws IOException {
		Scanner scan = new Scanner(System.in);
		String str = scan.nextLine();
		char charArray[] = str.toCharArray();
		for (int i = charArray.length - 1;i >= 0 ; i--) {
			System.out.print(charArray[i]);
			
		}
		System.out.println();
		
	} main {
		Scanner scan = new Scanner(System.in);
		String str = scan.nextLine();
		char charArray[] = str.toCharArray();
		for (int i = charArray.length - 1;i >= 0 ; i--) {
			System.out.print(charArray[i]);
			
		}
		System.out.println();
		
	} Scanner scan = new Scanner(System.in); scan new Scanner(System.in) String str = scan.nextLine(); str scan.nextLine() scan.nextLine scan char charArray[] = str.toCharArray(); charArray str.toCharArray() str.toCharArray str for (int i = charArray.length - 1;i >= 0 ; i--) {
			System.out.print(charArray[i]);
			
		} int i = charArray.length - 1; int i = charArray.length - 1; i charArray.length - 1 charArray.length charArray charArray.length 1 i >= 0 i 0 i-- i-- i {
			System.out.print(charArray[i]);
			
		} {
			System.out.print(charArray[i]);
			
		} System.out.print(charArray[i]) System.out.print System.out System System.out charArray[i] charArray 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 {
		Scanner scan = new Scanner(System.in);
		String str = scan.nextLine();
		char charArray[] = str.toCharArray();
		for (int i = charArray.length - 1;i >= 0 ; i--) {
			System.out.print(charArray[i]);
			
		}
		System.out.println();
		
	}
	
} public class Main{

	public static void main(String[] args) throws IOException {
		Scanner scan = new Scanner(System.in);
		String str = scan.nextLine();
		char charArray[] = str.toCharArray();
		for (int i = charArray.length - 1;i >= 0 ; i--) {
			System.out.print(charArray[i]);
			
		}
		System.out.println();
		
	}
	
} Main
import java.io.IOException;
import java.util.Scanner;

public class Main{

	public static void main(String[] args) throws IOException {
		Scanner scan = new Scanner(System.in);
		String str = scan.nextLine();
		char charArray[] = str.toCharArray();
		for (int i = charArray.length - 1;i >= 0 ; i--) {
			System.out.print(charArray[i]);
			
		}
		System.out.println();
		
	}
	
}