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