N = int(input()) def writeLevel(num, step): level = "" for i in range(step): level += str(num) print(level) step -= 1 if step >= 1: writeLevel(num, step) writeLevel(N, N)