n = int(input()) print((10**n//7)/10**n)