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