# your code goes here
n=int(input())
for i in range(n):
	for j in range(i+1):
		print(i+1, end=" ")
	print()