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