import random N=int(input()) if not N==10: k=range(1,N) else: k=range(N) l=[] for i in k: for j in range(N): l.append(str(i)) print("".join(l[::-1]))