N = int(input()) for n in range(N, 0, -1): print(str(N) * n)