There are multiple test cases. The first line of input contains an integer \(T\ (1 \le T \le 100)\), indicating the number of test cases. For each test case: The first line contains an integer \(n \ (2 \le n \le 3)\), indicating the number of kids. For the next \(n\) lines, each line contains three integers \(a_i, b_i\) and \(c_i\) (\(1 \le a_i, b_i, c_i, \le 300\)), indicating the distance for each jump of the \(i\)-th kid. It's guaranteed that the final rank of each kid won't be the same (ie. the farthest distance each kid can jump won't be the same).