Given several real numbers , we want to find the smallest possible set of closed intervals of length 1 that cover those real numbers. In other words, we must find a set of intervals such that
for every , there exists some such that ;
is minimum.
For instance, if the ’s are i , a possible solution is , because every is inside of (at least) one of the two intervals, and it is not possible to cover the four real numbers with only one interval.
Input consists of several cases, each with a number followed by different real numbers. Assume .
For every case, print the minimum number of closed intervals of length 1 that cover the given real numbers.
Input
4 1.4 1.9 2.3 2.7 6 1.75 3.5 0.5 3 1.5 0.2 2 -2.5 -3.5
Output
2 3 1