N=int(input()) if N==0: print(0) else: print("0.",end="") print((10**N)//7)