You are given two sequences a and b consisting of n integers. You may choose any index i (1<i<n) and simultanously apply the following changes :
Determine whether you can make array a equal to array b after applying this operation any number of times (possibly zero).
Input
The first line contains one integer t (1≤t≤105) --- the number of test cases.
The first line of each test case contains a single integer n (1≤n≤3⋅105)--- the number of integers in each sequence.
The second line of each test case contains n integers a1,a2,...,an (−109≤ai≤109).
The third line of each test case contains n integers b1,b2,...,bn(−109≤bi≤109).
Output
For each test case, output "Yes" (without quotes) if b can be obtained by applying the aforementioned operation on a any number of times, and "No" (without quotes) otherwise.
5 3 5 -1 3 4 1 2 4 3 2 -2 -3 3 0 2 -5 7 -10 -3 3 -4 -1 7 2 -15 1 1 3 0 2 2 4 1 -1 1 -1 -1 1 -1 1 7 -10 -3 3 -4 -1 7 2 -15 1 1 3 0 4 -2
In the first test case, we can obtain array [5,−1,3] by applying the operation on index i=2.
In the first test case, we can obtain array [3,0,2,−5] by applying the operation on index i=3.