说明: Input contains an integer N in the first line, and then N lines follow. Each line starts with a integer M, and then M integers follow in the same line. <qq_42259441> 上传 | 大小:230byte
说明: Input contains multiple test cases. Each test case contains a integer N, and then N integers follow in the same line. A test case starting with 0 terminates the input and this test case is not to be processed. <qq_42259441> 上传 | 大小:200byte