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