For each data set you are to produce one line of output of the form:
Data set d ends with boxes at locations (r1, c1) (r2, c2) ... (rn, cn).
where the (ri, ci) are the locations of the boxes given from top-to-bottom, left-to-right, (separated by one space) and d is the data set number (starting at 1).