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