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