n = int(input()) ans = 0 for i in range(n // 2 + 1): for j in range(i, n // 5 + 1): for k in range(n // 3 + 1): if i * 2 + j * 5 + k * 3 == n: ans += 1 print(ans)