n = int(input()) a = list(map(int, input().split())) s = '' for i, num in enumerate(a): for j in range(num): s = str(i + 1) + s print(s)