n = int(input()) ans = 0 for t in range(21): for g in range(t + 1): r = n - 5 * t - 2 * g if r >= 0 and r % 3 == 0: ans += 1 print(ans)