import sys
readline=sys.stdin.readline

N=int(readline())
ans_lst=[x for x in range(9,9-N,-1)]*N
print(*ans_lst,sep="")