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