from math import acos k = int(input()) if k == 0: print(acos(-1)**2 /6) else: ans = 0 for i in range(k): ans += 1 / (i + 1) ans /= k print(ans)