n=int(input()) ans=((10**n)//7) tmp=str(ans) if n==0: print(0) exit() cnt="0."+str() for i in range(n): cnt+=tmp[i] print(cnt)