n=int(input()) l=list(map(int,input().split())) l.append(0) b=[[n-i]*(l[i]-l[i+1]) for i in range(n)] print(map("".join,str(b)))