~/algor $ cat problems/if-chegirmali-narx
Discounted price
Easy
1000 ms
64 MB
22%
A purchase in a shop costs $S$ soums. If $S < 200\,000$, there is no discount; if $200\,000 \le S < 1\,000\,000$, a $10\%$ discount applies; if $S \ge 1\,000\,000$, a $15\%$ discount applies. Find the amount to pay after the discount.
Input
One positive integer $S$.
Output
One integer — the amount to pay.
Note
$100 \le S \le 10^{9}$
$S$ is a multiple of $100$.
Examples
Input #1
150000
Output #1
150000
Input #2
600000
Output #2
540000