
import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		String str = sc.next();
		for(int i = str.length() - 1; i > -1; i--){
			System.out.printf("%c", str.charAt(i));
		}
		System.out.println();
	}
} import java.util.Scanner; Scanner java.util public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		String str = sc.next();
		for(int i = str.length() - 1; i > -1; i--){
			System.out.printf("%c", str.charAt(i));
		}
		System.out.println();
	}
} Main public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		String str = sc.next();
		for(int i = str.length() - 1; i > -1; i--){
			System.out.printf("%c", str.charAt(i));
		}
		System.out.println();
	} main {
		Scanner sc = new Scanner(System.in);
		String str = sc.next();
		for(int i = str.length() - 1; i > -1; i--){
			System.out.printf("%c", str.charAt(i));
		}
		System.out.println();
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String str = sc.next(); str sc.next() sc.next sc for(int i = str.length() - 1; i > -1; i--){
			System.out.printf("%c", str.charAt(i));
		} int i = str.length() - 1; int i = str.length() - 1; i str.length() - 1 str.length() str.length str 1 i > -1 i -1 1 i-- i-- i {
			System.out.printf("%c", str.charAt(i));
		} {
			System.out.printf("%c", str.charAt(i));
		} System.out.printf("%c", str.charAt(i)) System.out.printf System.out System System.out "%c" str.charAt(i) str.charAt str i System.out.println() System.out.println System.out System System.out String[] args args public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		String str = sc.next();
		for(int i = str.length() - 1; i > -1; i--){
			System.out.printf("%c", str.charAt(i));
		}
		System.out.println();
	}
} public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		String str = sc.next();
		for(int i = str.length() - 1; i > -1; i--){
			System.out.printf("%c", str.charAt(i));
		}
		System.out.println();
	}
} Main

import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		String str = sc.next();
		for(int i = str.length() - 1; i > -1; i--){
			System.out.printf("%c", str.charAt(i));
		}
		System.out.println();
	}
}