Author: | Антон Карабанов | Time limit: | 1 sec | |
Input file: | Standard input | Memory limit: | 512 Mb | |
Output file: | Standard output |
In the "Three minnows" tavern for a gold coins you can buy three bread crusts and get back some change, or, for b gold coins — five bread crusts and some change. How many bread crumbs you are guaranteed to get for c golden coins?
One gold coin is equal to 100 silver coins. There are no other coin types in the country. One bread crust price is a whole number of silver coins. To get three bread crusts and a change for a gold coins means that three crusts cost strictly less than a golden coins, but four crusts cost more than a gold coins.
Input contains three integers a, b and c, one per line. Input data is such that the answer exists.
Output a single integer — problem answer.
1 ≤ a < b ≤ 109
1 ≤ c ≤ 109
No. | Standard input | Standard output |
---|---|---|
1 |
|
|