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