n = int(input()) for i in range(n): l = [n]*(n-i) print(*l)