from math import pi k = int(input()) if k == 0: print(pi * pi / 6) exit() ans = 0.0 for i in range(1, k + 1): ans += 1 / i print(ans / k)