import sys N = int(input()) for i in range(N): print() for j in range(N-i): sys.stdout.write(str(N))