#include int main (void){ long a, b, c, n; scanf ("%d", &n); a = n / 3; b = n / 5; c = a + b; printf("%d",c); return 0; }