n = int(input()) s = [] for i, c in enumerate(map(int, input().split()), 1): for _ in range(c): s.append(str(i)) ans = ''.join(s[::-1]) print(ans)