N = int(input()) cnt = 0 for t in range(N // 5 + 1): for g in range(t + 1): rest = N - (5 * t + 2 * g) if rest % 3 == 0 and rest >= 0: cnt += 1 print(cnt)