BasicSimulation & Finance10 points

Overtime on the factory floor

A garment factory in Dhaka pays its machine operators weekly. The first 40 hours are paid at the normal hourly rate. Hours above 40 up to 50 are paid at 1.5 times the rate, and hours above 50 are paid at double the rate.

Task: read two lines: the hourly rate (a number with up to 2 decimals) and the hours worked in the week (a multiple of 0.25, at most 80). Print Gross: X where X is the gross pay rounded to 2 decimals with halves rounded up, always showing 2 decimals.

Sample tests

Input

18.50
38

Expected output

Gross: 703.00

Input

18.50
45.5

Expected output

Gross: 892.63

Your answer is also checked against 4 hidden tests.