Submit

There are *a *tetrahedrons and *b* spheres in the 3D-splace, you’re asked to calculate the volume occupied by at least one of them (i.e. volume of the union of the objects).

There will be at most 20 test cases. Each case begins with two integers* a*, *b*, the number of tetrahedrons and the number of spheres (1<=*a*,*b*<=5). The next *a *lines each contains 12 integers: *x*_{1}, *y*_{1}, *z*_{1}, *x*_{2}, *y*_{2}, *z*_{2}, *x*_{3}, *y*_{3}, *z*_{3}, *x*_{4}, *y*_{4}, *z*_{4}, the coordinates (*x _{i}*,

For each test case, print a single line, the volume occupied by at least one of them, rounded to three decimal points.

```
1 1
0 0 4 1 0 4 0 1 4 0 0 5
0 0 0 1
0 0
```

```
4.356
```