N = int(input()) ans = 0 for TG in range(N // 7 + 1): a = N - TG * 7 for T in range(a // 5 + 1): b = a - T * 5 if b % 3 == 0: ans += 1 print(ans)