#Lutece1048. Bob's vector

Bob's vector

Migrated from Lutece 1048 Bob's vector

All parts of this problem, including description, images, samples, data and checker, might be broken. If you find bugs in this problem, please contact the admins.

Description

Bob has a vector with mm elements, called vector BB. Now Alice gives him a vector XX with nn elements.

Then he gets a new vector AA, in which $A_i = (B_1 \times X_i+ B_2 \times X_i ^ 2 \cdots +B_{m-1} \times X_i ^{m-1}+B_m \times X_i^m)$ mod 10000000071000000007.

Now Alice wants to find a peak position in vector AA, and a peak position is a position whose value is greater than both of its neighbors. You may assume that A0=,An+1=A_0 = - \infty, A_{n + 1}=-\infty.

As is known to everyone of you, Bob loves Alice very much. Could you tell Bob the answer to help Bob leave a good impression on Alice.

Input

The frist line contains 22 integers n,mn, m, indicating the size of vector XX and the size of vector BB.

The second line contains nn integers Xi(0Xi1000000000)X_i(0 \leq X_i \leq 1000000000), indicating the element in the vector XX.

The last line contains mm integers Bi(0Bi1000000000)B_i(0 \leq B_i \leq 1000000000), indicating the element in the vector BB.

It is guaranteed that 1n500000,1m100001 \leq n \leq 500000, 1 \leq m \leq 10000, and AiAi+1(1i<n)A_i \neq A_{i + 1}(1 \leq i < n) .

Output

Print a single integer, which denotes a peak position. If there are multiple solutions, you may print any of them.

Samples

3 2
2 1 3
1 1
1

Note

A0=,A1=6,A2=2,A3=12,A4=A_0=-\infty, A_1=6, A_2=2, A_3=12, A_4=-\infty. So 11, 33 are both OK

Resources

The 13th UESTC Programming Contest Final