Little Misha plays with infinite arrays which consist of nonnegative integers. Let us call such an array good if it is non-increasing.
In one step, Misha can increase or decrease one number in a good array by 1, if the array will remain good after this operation as well.
Initially, Misha had an array A. Misha made k steps and obtained an array B. In how many ways he could have obtained it?
The first line contains a single integer n (0≤n≤60): the number of nonzero elements in A. The second line contains n integers separated by spaces: 60≥a_1≥a_2≥⋯≥a_n>0, the elements themselves. All other elements of A are zeroes.
The next two lines contain a description of B in the same format.
Additionally, it is guaranteed that 0≤∑a_i≤60 and 0≤∑b_i≤60.
The last line contains the only integer k (0≤k≤106).
Print the desired number of ways modulo prime number 998,244,353.
In the first sample, the ways are: 3,2,1→4,2,1→3,2,1, 3,2,1→3,3,1→3,2,1, 3,2,1→3,2,2→3,2,1, 3,2,1→3,2,1,1→3,2,1, 3,2,1→2,2,1→3,2,1, 3,2,1→3,1,1→3,2,1, 3,2,1→3,2→3,2,1.
In the second sample, it is impossible to obtain the second array from the first in 1111 steps.