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