Problem BB
Invasion
Alien invasion began, and scary man-eating aliens are establishing their bases all over the country. You are only safe on the places that are sufficiently far away from all current alien bases. You need to quickly write a program to help you determine where to move.
Input
The input contains at most
The following
The following
The last instance is followed by a line containing four zeros.
Output
The output for each input instance consists of
Print one empty line after each instance.
Sample Input 1 | Sample Output 1 |
---|---|
7 6 3 3 1 2 1 1 3 1 2 5 1 3 6 1 1 4 1 4 7 2 2 1 4 1 0 1 1 1 0 0 0 0 |
2 1 0 0 |