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