#include <stdio.h> int main()//典型分支 {double n; scanf("%lf",&n); if(n<=100000) printf("%.2f",n*0.1); else if(n>100000&&n<=200000) printf("%.2lf",10000+(n-100000)*0.075); else if(n>200000&&n<=400000) printf("%.2lf",17500+(n-200000)*0.05); else if(n<=600000&&n>400000) printf("%.2lf",27500+(n-400000)*0.03); else if(n>600000&&n<=1000000) printf("%.2lf",33500+(n-600000)*0.015); else printf("%.2lf",39500+(n-1000000)*0.01); return 0;}