You are the owner of a castle, and you must defeat incoming monsters.
The castle is located at coordinate on a one-dimensional path of length . For seconds, one monster is spawned at coordinate every second. Monsters that have already been spawned move forward by coordinate every second.
When a monster reaches the castle, the castle is attacked, and that monster disappears. Every monster has health , and your attack power is .
Every second, you may choose one alive monster and deal damage to it. The monster's health decreases by , and if its health becomes or less, that monster disappears.
You may attack a monster immediately after it is spawned. Also, if a monster moves to coordinate and you attack and defeat it at that moment, it is considered not to have attacked the castle.
You may keep attacking until there are no alive monsters left. In other words, even after the last monster is spawned, if there are still alive monsters, you may continue attacking.
To minimize the number of attacks on the castle, you want to defeat as many monsters as possible. Find the maximum number of monsters you can defeat.
Input
The input is given in the following format.
Output
For each test case, print the maximum number of monsters you can defeat.
Constraints
- .
- .
- All input values are integers.
Subtasks
Samples
In the first test case, the only monster can be defeated immediately.
In the second test case, each monster requires attacks, and both monsters can be defeated.
In the third test case, a monster requires attacks, but no monster can be attacked times before reaching the castle.