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