n=int(input()) if n<=9: for i in range(n): print(str(i+1)*(n),end='') print() else: n-=1 for i in range(n): print(str(i+1)*(n),end='') print('0'*10)