N = int(input()) for i in range(N): print(str(N)*(N-i))