a = int(input()) b = a for _ in range(a): for _ in range(b): print(a, end='') print() b -= 1