n = int(input()) total =0 count =0 for t in range(21): for c in range(21): for p in range(35): if n == 5*t+2*c+3+p*2 and t>=c: count +=1 print(count)