Skip to main content
Tuesday (24.11.2026) at 20:00: ALGOR Contest: Round #4 (Special Challenge) starts!

~/algor $ cat problems/if-chegirmali-narx

Discounted price

Easy 1000 ms 64 MB 22%
Share

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.

Discount percentages depending on the purchase amount

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

Sign in to submit a solution

Signing up is free and takes a minute.