n=int(input()) ans='' if n==1: print(1) exit() for i in reversed(range(n)): w=str(i)*n ans+=w print(ans)