n = int(input()) ls = map(int,input().split()) c = "" for i in range(9): c = str(i+1) * i + c print(c)