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