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