Demand for electricity grew rapidly in the country over recent years, and is projected to grow even faster in the next twenty years. To cope with this increase in demand, the government is planning to privatize the country’s electricity power-generation sector, ending the monopoly of the state-owned company, ICPC (Independent Circuit Power Corporation).
ICPC owns a set of power-generation plants (hydroelectric and nuclear). ICPC’s plants are connected by power lines that cross the country. Each power line connects two distinctpower plants and is constructed in a straight line. A power path is a sequence of power lines $l_1, l_2, ...., l_m$, with each power line $l_i$ connecting directly plants $p_{i−1}$ and $p_i$, such that any two consecutive power lines $l_i$ and $l_{i + 1}$ are linked to a common power plant $p_i$.
Power plants were built over several years, one at a time, due to budget restrictions. Also due to budget restrictions, every time a new power plant was built, only one new power line was constructed to integrate the new plant to the existing ICPC system. The new power line always linked the newly built power plant to the nearest power plant already in the system. If more than one such plant existed (that is, if more than one plant was located at a minimum distance from the new plant), the oldest plant was chosen.
In the privatization project, the aim is to break up the ICPC power-generation system into smaller companies, each company owning a set of power plants (each power plant will be owned by only one company). After the privatization, ICPC will cease to exist; only the new companies will own the power plants. The division of power plants among new companies must obey the following restrictions:
- the total capacity of every new company must be at least $C$, where $C$ is a value in MW (Mega Watts) decided by the government. The total capacity of a set of power plants is the sum of capacities of those plants;
- power paths between any two plants owned by a new company must include only plants owned by that company.
You have been hired by ICPC to determine which is the largest number of new companies that can be created in the privatization process.
Output
For each test case in the input your program must produce one line of output, containing only one integer: the largest number of new companies that can be created in the privatization process.
The output must be written to standard output.