N = int(input()) ans = 0 for i in range(21): for j in range(51): for k in range(34): if i*5 + j*2 + k*3 == N and i >= j: ans += 1 print(ans)