import sys readline=sys.stdin.readline N=int(readline()) for n in range(N,0,-1): print(*[N]*n,sep="")