x=int(input()) if x==1:print(1);exit() ans="" for i in range(x-1,-1,-1): ans+=str(i)*x print(ans)