Junmin loves carbonated drinks. However, he spent all of his money buying drinks, so right now he has no money at all and cannot buy any new ones.
Junmin is a law-abiding person, so no matter how badly he craves a carbonated drink, he will never steal one. He will only obtain drinks through legal means.
As it happens, there is an event running: if you bring in a fixed number of empty bottles, they are exchanged for one new bottle of drink. Junmin diligently collects empty bottles from the street and then uses this event to drink carbonated drinks.
After he finishes one bottle, one empty bottle is left over, and that empty bottle can be used for another exchange as well.
Given the number of empty bottles Junmin already had, the number of empty bottles he collected from the street, and the number of empty bottles required to exchange for one new bottle, write a program that finds how many carbonated drinks Junmin can drink in total.
The first line contains the number of empty bottles Junmin already had $e$, the number of empty bottles he collected that day $f$, and the number of empty bottles required to exchange for one new bottle $c$, separated by spaces. ($0 \le e < 1000$, $0 \le f < 1000$, $1 < c < 2000$) $e$, $f$, and $c$ are all non-negative integers.
On the first line, print how many carbonated drinks Junmin can drink.