http://cur.lv/4x9e0 (Earn Bitcoins) #include using namespace std; int main () { int n; cin>>n; if (n%2==0) cout<<(n/2)*9; else cout<< ((n-1)/2)*9+5; return 0;}