N = int(input()) for i in range(N): for j in range(N-i, 0, -1): print(N, end="") print("")