#CCBCMCHIN0000044. Thuế thu nhập (Taxes)
Thuế thu nhập (Taxes)
Taxes
Source: beecrowd
Version: Phuoc Hung OJ Extended
Problem Statement
Income is taxed progressively: the first 2000 is exempt, the portion over 2000 through 3000 is taxed at 8%, the portion over 3000 through 4500 at 18%, and the portion above 4500 at 28%. Each rate applies only to its corresponding income slice.
Input
One real number is the income, with at most two decimal places.
Output
If , print Isento. Otherwise print R$ X.XX, where the progressive tax has exactly two digits after the decimal point.
Subtasks
Subtask 1 (20 points): Income S is in [0,2000] with at most two decimal places. Subtask 2 (30 points): Income S is in [0,4500] with at most two decimal places. Subtask 3 (50 points): Income S is in [0,100000] with at most two decimal places.
Examples
Example 1
Input
4520.00
Output
R$ 355.60
Explanation
The tax is 80 + 270 + (4520 - 4500) × 0.28 = 355.60.
Example 2
Input
2000.00
Output
Isento
Explanation
The entire income is within the exempt first 2000.