In the country of Olympia, a school hosts a computer science club consisting of experienced programmers and beginners. The club's coach organizes sessions by pairing each experienced programmer with a beginner. After each session, the coach evaluates the effectiveness of the collaboration between the -th experienced programmer and the -th beginner, denoted as a_{ij}. The overall effectiveness of the club is the sum of the effectiveness scores for all pairs, where each student is assigned to exactly one pair. The coach wants to know whether the total effectiveness of the club is the same regardless of how the pairs are formed.
Task
Write a program that, given the matrix of effectiveness for each possible experienced-beginner pair, determines whether the club's total effectiveness is independent of the pairing arrangement.
The first line contains an integer (1 \leq K \leq 50) — the number of test cases.
Each test case starts with a line containing an integer (2 \leq N \leq 100) — the number of experienced programmers and the number of beginners. The next lines each contain integers: the -th integer in the -th line is a_{ij} (0 \leq a_{ij} \leq 20000), the effectiveness of the -th experienced programmer working with the -th beginner.
For each test case, output a single number on a separate line: the total effectiveness of the club if it is the same for any pairing, otherwise output .
Example 1
The test set is divided into three blocks with additional constraints:
30% of points: 2 \leq N \leq 10.
20% of points: 10 < N \leq 50.
50% of points: 50 < N \leq 100.