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