n = int(input()) if n == 0: print(0) else: s = (10 ** n) // 7 b = str(s) a = "0." + "0"*(n-len(b)) print(a + b)