## TLE '17 Contest 4 P1 - Riding the Curve

View as PDF

Points: 3 (partial)
Time limit: 2.0s
Memory limit: 256M

Author:
Problem type
A beauty in mathematics.

You have just recently written a mathematics exam. Your professor, Prof. Snew, is very nice and likes to adjust the marks so that his students' grades are higher.

The exam is initially out of marks. Prof. Snew does the following to calculate a student's new mark:

Suppose the raw mark is . Then, add marks to the raw mark, and make the exam out of marks. That is, the final mark is .

You now wonder to yourself, what is the minimum raw exam mark required to pass (at least ) after adjustment?

#### Input Specification

The first line of input will contain three integers, , , and .

#### Output Specification

Output a single integer between and , the minimum raw exam mark required to pass. If it is impossible to pass, output have mercy snew instead.

#### Sample Input

50 32 80

#### Sample Output

16