#C666. Calculate Annual Income Tax

    ID: 50444 Type: Default 1000ms 256MiB

Calculate Annual Income Tax

Calculate Annual Income Tax

Given the annual income of an individual, calculate the tax amount owed based on the following tax brackets:

1. If (I \leq 50000), then the tax (T=0).
2. If (50000 < I \leq 100000), then (T=(I-50000)\times0.10).
3. If (I > 100000), then (T=5000+(I-100000)\times0.20).

Here, (I) represents the annual income, and all computations should maintain appropriate precision. Your program should read an integer from standard input (stdin) and output the calculated tax to standard output (stdout).

inputFormat

The input consists of a single line containing an integer, which represents the annual income.

outputFormat

Output the calculated tax amount. The output should be a number (which may be an integer or a floating-point value) printed to stdout.## sample

45000
0

</p>