Little Petya is preparing for the first contact with aliens. He knows that alien spaceships have shapes of non-degenerate triangles and there will be exactly 4 ships. Landing platform for a ship can be made of 3 special columns located at some points of a Cartesian plane such that these 3 points form a triangle equal to the ship with respect to rotations, translations (parallel shifts along some vector) and reflections (symmetries along the edges). The ships can overlap after the landing.
Each column can be used to land more than one ship, for example, if there are two equal ships, we don't need to build 6 columns to land both ships, 3 will be enough. Petya wants to know what minimum number of columns will be enough to land all ships.
Output
First line should contain minimum number of columns enough to land all spaceships.
Note
In the first test case columns can be put in these points:
(0,0),(1,0),(3,0),(1,2). Note that the second ship can land using last 3 columns.
In the second test case following points can be chosen:
(0,0),(0,1),(1,0),(0,2),(2,0),(0,5),(5,0),(0,17),(17,0). It is impossible to use less than 9 columns.