Time limit
2s
Memory limit
128 MB
Jungyeom is playing a turn-based strategy game. His goal is to destroy the opponent's barracks and remove every opponent marine.
At first, Jungyeom has N marines, and the opponent has no marines. The opponent's barracks has B health. As long as the barracks has not been destroyed, it produces U marines at the end of each turn.
Each turn proceeds in this order.
Find the minimum number of turns required for Jungyeom to destroy the barracks and remove all opponent marines.
The first line contains three integers N, B, and U.
Print the minimum number of turns needed to destroy the opponent's barracks and remove all opponent marines. If it is impossible, print -1.