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