#include<iostream> int main(){ float a; scanf("%f",&a); if(a>=10000){ printf("%.2f",a*0.05); }else if(a>=5000&&a<10000){ printf("%.2f",a*0.03); }else if(a>=1000&&a<5000){ printf("%.2f",a*0.02); }else{ printf("%.2f",0.00); } return 0; }