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