Kristina has two arrays aa and bb, each containing nn non-negative integers. She can perform the following operation on array aa any number of times:
Determine whether Kristina can get an array bb from an array aa in some number of operations (probably zero). In other words, can she make ai=biai=bi after some number of operations for each 1≤i≤n1≤i≤n?
For example, let n=4n=4, a=[3,5,4,1]a=[3,5,4,1] and b=[1,3,2,0]b=[1,3,2,0]. In this case, she can apply the operation twice:
Thus, in two operations, she can get an array bb from an array aa.
The first line of the input contains an integer tt (1≤t≤1041≤t≤104) —the number of test cases in the test.
The desc
The first line of each test case contains a single integer nn (1≤n≤5⋅1041≤n≤5⋅104).
The second line of each test case contains exactly nn non-negative integers a1,a2,…,ana1,a2,…,an (0≤ai≤1090≤ai≤109).
The third line of each test case contains exactly nn non-negative integers b1,b2,…,bnb1,b2,…,bn (0≤bi≤1090≤bi≤109).
It is guaranteed that the sum of nn values over all test cases in the test does not exceed 2⋅1052⋅105.
For each test case, output on a separate line:
6
4
3 5 4 1
1 3 2 0
3
1 2 1
0 1 0
4
5 3 7 2
1 1 1 1
5
1 2 3 4 5
1 2 3 4 6
1
8
0
1
4
6
YES
YES
NO
NO
YES
NO