n=int(input()) l=[9,8,7,6,5,4,3,2,1,0] l=[str(i)for i in l] a='' for i in range(n): a+=l[i] print(a*n)