n = int(input()) C = list(map(int,input().split())) ans = "" for i,c in enumerate(C,1): ans += str(i)*c print(ans[::-1])