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