#include int main() { long long int n; scanf("%lld", &n); if (n < 4) printf("%lld\n", n); else printf("%lld\n", (n - 3) * 5 + 3); return 0; }