N = input() ci= list(map(int, input().split())) ans = "".join(reversed(sum([[str(i+1)]*c for i, c in enumerate(ci) if c != 0], []))) print(ans)