N = int(input())
array = list(map(int, input().strip().split()))
array.sort
ans = 0
ansnum = 1
i = 0
for i in range (N-1):
    if (array[i] == ansnum):
        ans += 1
    else:
        print(ans)
        for i in range(array[i]-ansnum-1):
            print("0")
        ansnum = array[i]
        ans = 1
print(ans)
for i in range(N-ansnum):
    print("0")