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