def ratios():
i = int(input())
k = list(input())
x = 0
if 1 <= i <= 100:
if i == len(k) - 1:
if k[x] != '0':
print(k[x], end=' ')
while x < i:
print(str(int(k[x]) + int(k[x + 1])), end=' ')
x += 1
if k[i] != '0':
print(k[i])
ratios()