import java.util.Scanner;

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

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