Keeping Dry

Time Limit: 1000 ms Memory Limit: 65536 KiB

Problem Description

Most of us have faced the problem of walking home in the rain. The problem is simply that we don't know when we are going to be hit by a falling raindrop - if we knew when the drops were coming, and were agile enough (and thin enough), we could dodge the rain and avoid getting wet even in heavy showers. The Engineering Department at Waikikamukau Polytech believe they have found the solution, however. They have developed a radar detector to spot raindrops at a height of 5 metres. This information is fed into a computer, which calculates a strategy for avoiding the drops. To test their strategy, they have developed a one-dimensional model, for an experimental track of length 10 metres. The person is simulated by a rectangle of height 2 metres and width 0.5 metres.

Write a program to test their experimental drop-dodging strategy. Your program will read in successive positions of the `person', together with the positions (x-coordinates) of all the raindrops at a height of 5 metres above the ground at that time, and determine how many raindrops ultimately hit the person. Raindrops fall at a constant rate of 1 metre per second. 

Input

 Input will consist of a series of scenarios, each scenario consisting of a series of lines. Each line will give the data at one second intervals. The first value on a line gives the position of the front of the `person' along the track, the remaining values give the positions (in increasing order) of the new raindrops which have been detected at the 5m height. Two drops will never have the same height and position. All positions are given to the nearest cm (0.01 m). Each line is terminated by the number -1.00. You can assume all drops are at the 5m height at the start of the second when they are first detected, and fall at 1m per second. Each scenario will be terminated by a line containing the single value 10.00, indicating that the `person' has reached the end of the track. The entire file will be terminated by -1.00. 

Output

 Output will consist of a series of lines, one for each scenario, each containing the number of raindrops that hit the `person'. 

Sample Input

0.00 1.05 3.06 5.81 7.93 9.91 -1.00
2.10 1.87 4.21 6.83 8.76 -1.00
1.63 2.44 6.17 8.13 9.45 -1.00
8.25 2.83 3.61 4.77 5.56 7.31 8.11 9.23 9.84 -1.00
10.00
-1.00

Sample Output

2

Hint


Source