n = int(input()) c = 0 if n == 0: c = 1 for i in range(n): for j in range(n): for k in range(n): if i*5 + j*2 + k*3 == n and i >= j: c += 1 print(c)