Problem ID: 750

(1) The first line of the judge's input contains the number of test cases, T. Then T test cases follow. The sample input on UVa Online Judge is wrong. The input on uDebug is in the correct format.

(2) Print a blank line between test cases - not after each test case. (So, there should not be a blank line printed after the last test case.) Printing a blank line after each test case will result in a verdict of wrong answer on UVa Online Judge.