The first line contains the number of boxes N (1≤N≤1000).
Each of the next N lines contains six integers x1, y1, z1, x2, y2, z2 separated by spaces. The first three are the coordinates of one corner and the last three are the coordinates of the opposite corner. All coordinates are between 1 and 1000, and x1<x2, y1<y2, z1<z2.