#C9896. Pastry Cost Calculation with Discounts

    ID: 54039 Type: Default 1000ms 256MiB

Pastry Cost Calculation with Discounts

Pastry Cost Calculation with Discounts

You are given the task of calculating the total cost of a pastry purchase with possible discounts. Each pastry costs \(2.00\) dollars. Discounts are applied as follows:

  • If the number of pastries purchased, \(n\), is at least 10, a 20% discount is applied, i.e., the effective cost per pastry becomes \(2.00 \times 0.8\).
  • If \(5 \leq n < 10\), a 10% discount is applied, i.e., the effective cost per pastry becomes \(2.00 \times 0.9\).
  • If \(n < 5\), no discount is applied.

Your task is to compute the total cost. The final result should be rounded to two decimal places.

inputFormat

The input consists of a single integer N (0 ≤ N ≤ 10^6) on a single line, representing the number of pastries purchased.

outputFormat

Output the total cost after applying any applicable discounts, rounded to two decimal places. The result should be printed as a single number.## sample

1
2.00