There are

players fighting the boss, and each player has its hp value. Initially, the hp value of

-th player equals

. There is no upper limit for the hp value of each player.
At the
end of each minute, the

-th person will suffer

damage; that is, the hp value of

-th person will decrease

. Once a player's hp value is less than or equal to

, he will
permanently quit the fight.
You have magical skills. You can select the

-th player (if he is alive) and increase his hp value by

. You can use it multiple times at any minute, but the total number of times cannot exceed

.
Now you need to determine the maximum number of players that can survive after

minutes.