_ = input() xs = list(map(int, input().split())) result = "" for i, x in enumerate(xs): result += str(i+1)*x print(result[::-1])