#include using namespace std; int main(){ int64_t N; cin >> N; int64_t ans = 0; if(N < 4)ans = N; else ans = 5 * N - 12; cout << ans << endl; }