Sole Proprietor
Limits: 2 sec., 512 MiB
Zenyk is a sole proprietor (a FOP, as it is called in Ukraine) of the third tax group. He earns \(a\) hryvnias a year and pays \(x\%\) tax on this amount.
Zenyk already earns the largest amount allowed in his group. If his yearly income exceeds \(a\) hryvnias, he will pay \(y\%\) tax on his whole yearly income, where \(y > x\).
Zenyk wants to increase his income so that after paying the tax he keeps strictly more money than he does now. What is the smallest whole number of hryvnias greater than \(a\) that he has to earn per year?
The tax is calculated exactly, without rounding, so the amount left after paying it may be fractional.
Input
The only line contains three integers \(a\), \(x\) and \(y\) – Zenyk’s current yearly income in hryvnias, his current tax rate, and the tax rate after his income grows, in percent.
Output
Print one integer – the smallest new yearly income of Zenyk in hryvnias with which he keeps strictly more money after paying the tax than he does now.
It is guaranteed that the answer exists.
Constraints
\(1 \le a \le 10^7\),
\(0 \le x < y \le 99\).
Samples
| Input (stdin) | Output (stdout) |
|---|---|
| 100 5 10 | 106 |
| Input (stdin) | Output (stdout) |
|---|---|
| 90 0 10 | 101 |
| Input (stdin) | Output (stdout) |
|---|---|
| 1 98 99 | 3 |
Notes
In the first example, Zenyk now keeps 95 hryvnias after paying the tax. If he earns 105 hryvnias, he keeps 94.5 hryvnias after paying the tax, and if he earns 106 hryvnias, he keeps 95.4 hryvnias.
In the second example, Zenyk now keeps 90 hryvnias. With an income of 100 hryvnias he keeps exactly 90 hryvnias after paying the tax, which is not enough. With an income of 101 hryvnias he keeps 90.9 hryvnias.
In the third example, Zenyk now keeps 0.02 hryvnias. With an income of 2 hryvnias he keeps the same amount after paying the tax, and with an income of 3 hryvnias he keeps 0.03 hryvnias.
Submit a solution
| Element Type | Created | Who | Problem | Compiler | Result | Time (sec.) | Memory (MiB) | # | Actions |
|---|
| Element Type | Created | Who | Problem | Compiler | Result | Time (sec.) | Memory (MiB) | # | Actions |
|---|