#C7581. Employee Bonus Calculation

    ID: 51468 Type: Default 1000ms 256MiB

Employee Bonus Calculation

Employee Bonus Calculation

Given an employee's years of service, you are required to calculate the bonus based on the following rules:

  • If the number of years \(\leq 2\), the bonus is 100.
  • If the number of years is between \(3\) and \(5\) (inclusive), the bonus is calculated as \(200 + 50 \times (\text{years} - 2)\).
  • If the number of years \(> 5\), the bonus is calculated as \(400 + 100 \times (\text{years} - 5)\).

For example, if an employee has worked for 4 years, the bonus will be \(200 + 50 \times (4-2) = 300\).

inputFormat

The input consists of a single integer \(n\) which represents the number of years of service of the employee. Input is provided from standard input (stdin).

outputFormat

Output the calculated bonus as a single integer to standard output (stdout).

## sample
1
100

</p>