P1422 Electricity Bill of Xiao Yu's Family
Description
Summer has arrived, and households are using much more electricity, so their electricity bills have increased as well. Today, Xiao Yu’s family received an electricity bill notice. Xiao Yu saw that it stated: According to Minjiadian [2006] No. 27, the portion of monthly electricity consumption up to and including $150$ kilowatt-hours is charged at $0.4463$ yuan per kilowatt-hour, the portion within $151\sim 400$ kilowatt-hours is charged at $0.4663$ yuan per kilowatt-hour, and the portion at $401$ kilowatt-hours and above is charged at $0.5663$ yuan per kilowatt-hour. Xiao Yu wants to verify whether the amount due on the bill is correct. Please write a program that, given the total electricity consumption, calculates the amount of the electricity bill according to the pricing rules.
Input Format
Input a positive integer representing the total electricity consumption (in kilowatt-hours), not exceeding $10000$.
Output Format
Output a number with exactly $1$ decimal place (in yuan).
Explanation/Hint
Translated by ChatGPT 5