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