k = int(input()) ans = 0 for i in range(1,1000000): ans += 1/(i*(i + k)) print(ans)