You are given a 3×3 grid. Each number in the grid is represented by Cij where (i,j) denotes the square at the ith row from the top and jth column from the left.
Bob gets confused. According to him, there are six integers a1,a2,a3,b1,b2,b3 whose values are fixed and the number written in the square (i,j) is equal to ai+bj. You are required to determine whether Bob is correct or not.
Input format
Output format
For each test case, print YES if Bob's statement is correct. Otherwise, print NO in a new line.
Constraints
1≤T≤2000000≤Cij≤1000000000
For first testcase, the set of 6 integers (a1,a2,a3,b1,b2,b3) = (2,3,2,1,2,5). Therfore, Lucky's statement is correct.
For second testcase, there are no possible set of 6 integers. Therefore, Lucky's statement must be incorrect.