input() c = list(map(int, input().split())) d = [] for i in range(len(c)): for j in range(c[i]): d.append(i+1) d.sort(reverse=True) print("".join(map(str, d)))