N = input() A = range(1,N+1) A.reverse() for i in A: print str(N)*i