n=int(input()) ans=0 for t in range(n): for g in range(t+1): for p in range(n): if 5*t+2*g+3*p>n: break elif 5*t+2*g+3*p==n: ans+=1 print(ans)