N=int(input()) if N==0: print(0) exit() T=10**N//7 print("0."+str(T))