#include<bits/stdc++.h> using namespace std; int main(){ int a; double price; cin>>a; if(a>10) price=a*2*0.9; else price=a*2; printf("%.1lf",price); return 0; }