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