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