k = int(input()) h = 0.0 for i in range(1, k + 1): h += 1 / i ans = h / k print(ans)