ans = 0 N = int(input()) for t in range(21): for g in range(51): for pg in range(34): if g > t: continue if t * 5 + 2 * g + 3 * pg == N: ans += 1 print(ans)