#include<iostream> using namespace std; int main(){ int N; cin>>N; if (N<=3){ cout<<"14"; } else { cout<<14+(int)((N-3)*2.3); } return 0; }