#include<bits/stdc++.h> using namespace std; int main() { int x; double m; cin>>x; if(x<=150) { m=x*0.4463; } else { if(x>=151&&x<=400) m=x*0.4663; else m=x*0.5663; } printf("%.1lf",&m); return 0; }