# Topic: Pttern Lecture-2 
#Question: Code 1

n = int(input())
for i in range(n):
	for j in range(i+1):
		print(i+1, end=" ")
	print()