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