import math N = int(input()) n = math.pow(10, N) print(n//7 / n)