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