import java.util.*;

public class Main{
	private static final Scanner scan = new Scanner(System.in);

	public static void main(String[] args){
		String str = scan.next();
		for(int i = str.length() - 1; i >= 0; i--){
			char ch = str.charAt(i);
			System.out.printf("%c", ch);
		}
		System.out.printf("\n");
	}
} import java.util.*; util.* java public class Main{
	private static final Scanner scan = new Scanner(System.in);

	public static void main(String[] args){
		String str = scan.next();
		for(int i = str.length() - 1; i >= 0; i--){
			char ch = str.charAt(i);
			System.out.printf("%c", ch);
		}
		System.out.printf("\n");
	}
} Main private static final Scanner scan = new Scanner(System.in); scan new Scanner(System.in) public static void main(String[] args){
		String str = scan.next();
		for(int i = str.length() - 1; i >= 0; i--){
			char ch = str.charAt(i);
			System.out.printf("%c", ch);
		}
		System.out.printf("\n");
	} main {
		String str = scan.next();
		for(int i = str.length() - 1; i >= 0; i--){
			char ch = str.charAt(i);
			System.out.printf("%c", ch);
		}
		System.out.printf("\n");
	} String str = scan.next(); str scan.next() scan.next scan for(int i = str.length() - 1; i >= 0; i--){
			char ch = str.charAt(i);
			System.out.printf("%c", ch);
		} int i = str.length() - 1; int i = str.length() - 1; i str.length() - 1 str.length() str.length str 1 i >= 0 i 0 i-- i-- i {
			char ch = str.charAt(i);
			System.out.printf("%c", ch);
		} {
			char ch = str.charAt(i);
			System.out.printf("%c", ch);
		} char ch = str.charAt(i); ch str.charAt(i) str.charAt str i System.out.printf("%c", ch) System.out.printf System.out System System.out "%c" ch System.out.printf("\n") System.out.printf System.out System System.out "\n" String[] args args public class Main{
	private static final Scanner scan = new Scanner(System.in);

	public static void main(String[] args){
		String str = scan.next();
		for(int i = str.length() - 1; i >= 0; i--){
			char ch = str.charAt(i);
			System.out.printf("%c", ch);
		}
		System.out.printf("\n");
	}
} public class Main{
	private static final Scanner scan = new Scanner(System.in);

	public static void main(String[] args){
		String str = scan.next();
		for(int i = str.length() - 1; i >= 0; i--){
			char ch = str.charAt(i);
			System.out.printf("%c", ch);
		}
		System.out.printf("\n");
	}
} Main
import java.util.*;

public class Main{
	private static final Scanner scan = new Scanner(System.in);

	public static void main(String[] args){
		String str = scan.next();
		for(int i = str.length() - 1; i >= 0; i--){
			char ch = str.charAt(i);
			System.out.printf("%c", ch);
		}
		System.out.printf("\n");
	}
}