#include<iostream> using namespace std; int main() { int n; double cost; cin>>n; if(n>500) cost=0.15; else if(n>300) cost=0.10; else if(n>100) cost=0.075; else if(n>50) cost=0.05; else cost=0; cout<<"cost="<<cost<<'\n; return 0; }