Boundaries
Ancient state NoRome had boundary in the kind of convex polygon measured by fence. State NoRom constantly increased the own territory by winning their enemies and conquering the new lands.
When the new boundary created the convex polygon, NoRomans destroyed the old fence and built a new one.
Modern historians decided to research the history of the development of an ancient NoRome. But the only thing they possessed was the coordinates of the holes from the poles, which was placed earlier as the tops of the polygons.
Yours program has to help historians to determine the number of build fences, using the coordinates of the pole holes, taking into consideration the fact that each new fence was not contiguous to the old one.
Input
Input file input.txt consists of several tests. The first line of each test shows the number of holes. In each next lines of test there are the full coordinates X and Y of one hole separated by a comma. The values of coordinates do not exceed 1000. Holes coordinates are written in a random order. Input file does not have to contain the empty lines.
Output
The program has to display in a separate line the number of built fences for each test, or NO, if at least one fence does not form the convex polygon. Output has to end with the empty line.