Module: (Python) Workshop - 1 "Sofia the first". Linear Algorithms


Problem

7 /11


Squirrel with nuts

Problem

Squirrel lives on a very high tree at an altitude of h miles. He wants to pick up a nut in his hollow. During the day, he rises with a nut a miles, and during the night, the nut rolls down b miles. On what day does the squirrel raise the nut to its hollow?

Input format 
Given positive integer numbers h, a, b (0 < n <= 100, 0 < b < a < = 100).

Output format
Output one number. 

 
Example
Input Output
1 10
3
2
8