N=int(input()) for i in reversed(range(1,N+1)): print(str(N)*i)