N = int(input()) ans = 0 for c in range(55): for t in range(c,50): temp = c*2+t*5 if temp > N: continue if (N-temp)%3 == 0: #print(temp,c,t) ans += 1 print(ans)