#D1797. Milk
Milk
Milk
Problem
If you bring an empty bottle of milk, you can exchange it for a new bottle of milk. How many bottles of milk can Mr. Kawabayashi, who initially has a bottle of milk, drink? Output the remainder after dividing by .
Constraints
The input satisfies the following conditions.
Input
The input is given in the following format.
Three integers , , are given, separated by spaces.
Output
Print the answer on one line.
Examples
Input
3 1 5
Output
7
Input
3 2 5
Output
11
Input
82 69 64
Output
64
Input
316250877917604 316250877917599 681260158257385
Output
62687552
inputFormat
outputFormat
Output the remainder after dividing by .
Constraints
The input satisfies the following conditions.
Input
The input is given in the following format.
Three integers , , are given, separated by spaces.
Output
Print the answer on one line.
Examples
Input
3 1 5
Output
7
Input
3 2 5
Output
11
Input
82 69 64
Output
64
Input
316250877917604 316250877917599 681260158257385
Output
62687552
样例
316250877917604 316250877917599 681260158257385
62687552