Each day an object rises $a$; each night it falls $b$. Once it reaches the goal $c$ it does not fall that night. Print how many days it takes to reach $c$.
Input
Three integers $a$, $b$, $c$ ($1 \le b < a \le c \le 10000$).
Output
Print the number of days to reach the goal.
Example 1
Input
5 2 12
Output
4
Discussion
Threads about this problem. Spoilers are collapsed; wrap hints in
||double bars||.No discussion yet. Start a thread if something here needs explaining.