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