#include<bits/stdc++.h> using namespace std; int main(){ double w,cost; cin>>w; if (w<=1){ cost=1.5; } else{ cost=1.5*w+(w-1)*0.8; } printf("%.1lf",cost); return 0; }