n = int(input()) a = pow(10, n) if n == 0: print(0) else: print((a // 7) / a)