#include int main() { float input,money,result; scanf("%f",&input); money = input * 10000; if(input <= 10) result = money * 0.1; else if(input <= 20) result = 100000 * 0.1 + (money - 100000) * 0.075; else if(input <= 40) result = 100000 * 0.1 + 100000 * 0.075 + (money - 200000) * 0.05; else if(input <= 60) result = 100000 * 0.1 + 100000 * 0.075 + 200000 * 0.05 + (money - 400000) * 0.03; else if(input <= 100) result = 100000 * 0.1 + 100000 * 0.075 + 200000 * 0.05 + 200000 * 0.03 + (money - 600000) * 0.015; else result = 100000 * 0.1 + 100000 * 0.075 + 200000 * 0.05 + 200000 * 0.03 + 400000 * 0.015 + (money - 1000000) * 0.01; result /= 10000; printf("*%.2f",result); return 0; }