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