x=int(input()) if x==1:print(1);exit() ans="0"*(x-1) print((str(x)+ans)*2)