There will be at most 20 test cases. Each case begins with two integersa,b, the number of tetrahedrons and the number of spheres (1<=a,b<=5). The nextalines each contains 12 integers:x1,y1,z1,x2,y2,z2,x3,y3,z3,x4,y4,z4, the coordinates (xi,yi,zi)(1<=i<=4) of the four vertices of a tetrahedron. The nextblines each contains 4 integersx,y,z,r, the coordinates of the center (x,y,z) and the radiusr(r<=3). All the coordinate values are integers with absolute values no more than 5. The input is terminated bya=b=0.