#include using namespace std; int main(){ long long n; cin >> n; if (n<=3) cout << n << endl; else cout << 8 + 5*(n-4) << endl; }