n = int(input()) C = list(map(int,input().split())) ans = "" for i,c in enumerate(C,1): ans += str(c)*i print(ans[::-1])