Area
문제
A square field has been divided into rectangular plots by drawing vertical and horizontal lines. The rows of plots are numbered from bottom to top and the columns from left to right, as shown on the figures below (the figures are not to scale).
[이미지 1]
The plots located at the intersection of the -th column and the -th row (for ) are called the long diagonal. The plots located at the intersection of the -st column and the -th row (for ) are called the short diagonal.
You know the areas of the plots on the long and short diagonals. Calculate the area of the plot at the intersection of the -th column and the -th row.
입력
The first line contains the integer ().
The second line contains integers () --- the areas of the plots on the long diagonal.
The third line contains integers () --- the areas of the plots on the short diagonal.
The fourth line contains two integers and () --- the coordinates of the plot whose area should be calculated.
출력
Output the area of the plot located at the intersection of the -th column and the -th row. The answer should be represented as a sequence of lines, each containing two integers and . The numbers must be distinct primes. The numbers must be non-zero integers such that where is the number of lines in the answer. The lines must be listed in increasing order of . (Recall that an integer is considered prime if it has exactly two positive integer divisors: and .)
If , then output it as a single line "1 1".
예제
예제 1
5 6 1 3 9 5 3 9 3 6 2 3
3 -1
예제 2
5 5 2 8 3 5 2 6 8 9 5 2
2 1 3 2
예제 3
5 6 1 3 9 5 3 9 3 6 2 4
1 1