n = int(input()) n_1 = 1 for n_2 in range(1,n+1): for i in range(n_2,n+1): if n_1 < 10: print("0",end = '') print(n_1,end = '') n_1 += 1 print()