N = int(input()) for i in range(N): for _ in range(N - i + 1): print(N,end='') print()