#include int main(void) { long long n; scanf("%lld", &n); n=n/3LL*2LL+n/5LL*2LL; printf("%lld\n",n); return 0;}