def solution(n, s):
answer = []
div, mod = divmod(s, n)
if s < n:
return [-1]
for _ in range(n - mod):
answer.append(div)
for _ in range(mod):
answer.append(div + 1)
return answer
print(solution(2, 9)) #[4, 5]
print(solution(2, 1)) #[-1]
print(solution(2, 8)) #[4, 4]