p=int(input())-1 s=3 for i in range(1,p+1): s=(s+1)*9+(10**i)-1 print(s)