import java.util.Scanner;



public class Main {
	public static void main(String[] args) {
		try(Scanner sc = new Scanner(System.in)) {
			String str = sc.next();
			for(int i=0; i<str.length(); i++) {
				System.out.print(str.charAt(str.length()-1-i));
			}
			System.out.println();
			

			
		}
	}
}



 import java.util.Scanner; Scanner java.util public class Main {
	public static void main(String[] args) {
		try(Scanner sc = new Scanner(System.in)) {
			String str = sc.next();
			for(int i=0; i<str.length(); i++) {
				System.out.print(str.charAt(str.length()-1-i));
			}
			System.out.println();
			

			
		}
	}
} Main public static void main(String[] args) {
		try(Scanner sc = new Scanner(System.in)) {
			String str = sc.next();
			for(int i=0; i<str.length(); i++) {
				System.out.print(str.charAt(str.length()-1-i));
			}
			System.out.println();
			

			
		}
	} main {
		try(Scanner sc = new Scanner(System.in)) {
			String str = sc.next();
			for(int i=0; i<str.length(); i++) {
				System.out.print(str.charAt(str.length()-1-i));
			}
			System.out.println();
			

			
		}
	} try(Scanner sc = new Scanner(System.in)) {
			String str = sc.next();
			for(int i=0; i<str.length(); i++) {
				System.out.print(str.charAt(str.length()-1-i));
			}
			System.out.println();
			

			
		} {
			String str = sc.next();
			for(int i=0; i<str.length(); i++) {
				System.out.print(str.charAt(str.length()-1-i));
			}
			System.out.println();
			

			
		} Scanner sc = new Scanner(System.in) Scanner sc = new Scanner(System.in) new Scanner(System.in) String str = sc.next(); str sc.next() sc.next sc for(int i=0; i<str.length(); i++) {
				System.out.print(str.charAt(str.length()-1-i));
			} int i=0; int i=0; i 0 i<str.length() i str.length() str.length str i++ i++ i {
				System.out.print(str.charAt(str.length()-1-i));
			} {
				System.out.print(str.charAt(str.length()-1-i));
			} System.out.print(str.charAt(str.length()-1-i)) System.out.print System.out System System.out str.charAt(str.length()-1-i) str.charAt str str.length()-1-i str.length()-1-i str.length() str.length str 1 i System.out.println() System.out.println System.out System System.out String[] args args public class Main {
	public static void main(String[] args) {
		try(Scanner sc = new Scanner(System.in)) {
			String str = sc.next();
			for(int i=0; i<str.length(); i++) {
				System.out.print(str.charAt(str.length()-1-i));
			}
			System.out.println();
			

			
		}
	}
} public class Main {
	public static void main(String[] args) {
		try(Scanner sc = new Scanner(System.in)) {
			String str = sc.next();
			for(int i=0; i<str.length(); i++) {
				System.out.print(str.charAt(str.length()-1-i));
			}
			System.out.println();
			

			
		}
	}
} Main
import java.util.Scanner;



public class Main {
	public static void main(String[] args) {
		try(Scanner sc = new Scanner(System.in)) {
			String str = sc.next();
			for(int i=0; i<str.length(); i++) {
				System.out.print(str.charAt(str.length()-1-i));
			}
			System.out.println();
			

			
		}
	}
}




