Problems
Spy Satellites
Spy Satellites
Martian spy satellites have taken a photo of an area on the dark side of the Moon. In this photo, only a lot of light points are seen in the dark. The Martian general suggests that the points are secret objects at lunar military bases. He wants to know how many bases there are on the Moon. The Martians suppose that the bases are seen at the photo as clusters of light points and satisfy the following property: the distance between any two objects at the same base is strictly less than the distance from any object at this base to any object at any other base. The area on the photo can be assumed flat, and the distance between objects having in the photo coordinates (\textbf{A}, \textbf{B}) and (\textbf{С}, \textbf{D}) is assumed to be
\includegraphics{https://static.e-olymp.com/content/b3/b353f4581c183f48bf032b91f9ff2b8d5c1482a5.jpg}
.
\InputFile
The input contains several tests separated by an empty line. The first line of each test contains the number of objects on the photo \textbf{N}. The next \textbf{N} lines contain coordinates of the objects, two integers separated by a space per line. Absolute values of all coordinates do not exceed \textbf{10^4}. After the last test there is an empty line and the number \textbf{0}. The sum of all \textbf{N} in the input does not exceed \textbf{5000}, the sum of all \textbf{N^2} does not exceed \textbf{400000}, and the sum of all \textbf{N^3} does not exceed \textbf{250000000}.
\OutputFile
For each test, you should output all possible numbers of bases on the photo in the form of a line of length \textbf{N} consisting of zeros and ones. For example, the line \textbf{110} means that there may be one or two bases on the photo, and the line \textbf{011} means that there may be two or three bases.