x = int(input())data = []for i in range(x): dt = [] dt.append(int(input())) data.append(dt)for i in range(x): for j in range(i): data[i].append(data[i][j-1]-data[i-1][j-1])for i in range(x): for j in range(i): print(data[i][j],end=" ") print()