n= int(input()) if n == 0: print(0) else: n = 10 ** n x = n // 7 print("0." + str(x) )