n = int(input()) if n == 0: print(0) exit() print((10**n//7)/10**n)