#include<stdio.h>
main()
{
double a,b;
scanf("%d",&a);
if(a>10000) { b=a*0.05; printf("The tex is %d.\n",b);}
else if(a<10000&&a>5000) {b=0.03*a;printf("The tex is %d.\n",b); }
else if(a<5000&&a>1000) {b=0.02*a;printf("The tex is %d.\n",b );}
else {printf("The tex is %d.\n",a);}
}