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