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