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