A unit cube is a 1 \times 1 \times 1 cube whose corners have integer , , and coordinates. Two unit cubes are connected when they share a face. A solid is a non-empty connected set of unit cubes (see Figure 1). The volume of a solid is the number of unit cubes it contains. A block is a solid with volume at most . Two blocks have the same type when one can be obtained from the other by translations and rotations (reflections are not allowed). There are exactly block types (see Figure 2). The colors in the figures illustrate the structure of the solids and have no other meaning.
A set of blocks is called a decomposition of a solid if the union of all blocks in equals , and no two distinct blocks in have a unit cube in common.
Given the description of the block types and of a solid , write a program to determine the smallest number of blocks into which can be decomposed. You only need to output the block types, each as many times as it appears in the decomposition.

Figure 1.

Figure 2.
The first line contains the volume of the solid (1 \leq V \leq 50). The next lines each describe the position of a unit cube that makes up the solid. Each of these lines contains three integers , , and (1 \leq x, y, z \leq 7).
The first line must contain one integer — the smallest number of blocks in any decomposition of the given solid.
The file describing the types of blocks is provided below.
Example 1