import math n = int(input()) mother = 10 ** n child = math.floor(mother / 7) print(child / mother)