#include<bits/stdc++.h> using namespace std; int main(){ int a,b; cin>>a; b=2; if(a<=10) cout<<a*b; else cout<<a*b*0.9; return 0; }