Dinara has an integer x and two n arrays a_1,…,a_n, b_1,…,b_n. She makes an n×n matrix M where
M\_{i, j} = \left\\{\begin{matrix} x + a\_i b\_j & \mathrm{when}\ i = j \\\ a\_i b\_j & \mathrm{otherwise} \end{matrix}\right.
Find the determinant of the matrix M modulo (109+7).
The input consists of several test cases terminated by end-of-file.
The first line of each test case contains two integers n and x. The second line contains n integers a_1,…,a_n. The third line contains n integers b_1,…,b_n.
For each test case, print an integer which denotes the result.