import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		try (Scanner sc = new Scanner(System.in)) {
			while (sc.hasNext()) {
				String line = sc.nextLine();
				System.out.println(new StringBuilder(line).reverse().toString());
			}
		}
	}
} import java.util.Scanner; Scanner java.util public class Main {
	public static void main(String[] args) {
		try (Scanner sc = new Scanner(System.in)) {
			while (sc.hasNext()) {
				String line = sc.nextLine();
				System.out.println(new StringBuilder(line).reverse().toString());
			}
		}
	}
} Main public static void main(String[] args) {
		try (Scanner sc = new Scanner(System.in)) {
			while (sc.hasNext()) {
				String line = sc.nextLine();
				System.out.println(new StringBuilder(line).reverse().toString());
			}
		}
	} main {
		try (Scanner sc = new Scanner(System.in)) {
			while (sc.hasNext()) {
				String line = sc.nextLine();
				System.out.println(new StringBuilder(line).reverse().toString());
			}
		}
	} try (Scanner sc = new Scanner(System.in)) {
			while (sc.hasNext()) {
				String line = sc.nextLine();
				System.out.println(new StringBuilder(line).reverse().toString());
			}
		} {
			while (sc.hasNext()) {
				String line = sc.nextLine();
				System.out.println(new StringBuilder(line).reverse().toString());
			}
		} Scanner sc = new Scanner(System.in) Scanner sc = new Scanner(System.in) new Scanner(System.in) while (sc.hasNext()) {
				String line = sc.nextLine();
				System.out.println(new StringBuilder(line).reverse().toString());
			} sc.hasNext() sc.hasNext sc {
				String line = sc.nextLine();
				System.out.println(new StringBuilder(line).reverse().toString());
			} String line = sc.nextLine(); line sc.nextLine() sc.nextLine sc System.out.println(new StringBuilder(line).reverse().toString()) System.out.println System.out System System.out new StringBuilder(line).reverse().toString() new StringBuilder(line).reverse().toString new StringBuilder(line).reverse() new StringBuilder(line).reverse new StringBuilder(line) String[] args args public class Main {
	public static void main(String[] args) {
		try (Scanner sc = new Scanner(System.in)) {
			while (sc.hasNext()) {
				String line = sc.nextLine();
				System.out.println(new StringBuilder(line).reverse().toString());
			}
		}
	}
} public class Main {
	public static void main(String[] args) {
		try (Scanner sc = new Scanner(System.in)) {
			while (sc.hasNext()) {
				String line = sc.nextLine();
				System.out.println(new StringBuilder(line).reverse().toString());
			}
		}
	}
} Main
import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		try (Scanner sc = new Scanner(System.in)) {
			while (sc.hasNext()) {
				String line = sc.nextLine();
				System.out.println(new StringBuilder(line).reverse().toString());
			}
		}
	}
}