k = gets.to_i onef = Float.induced_from(1) cnt = 0 for i in 1..k cnt += onef / i end ans = cnt / k print(ans, "\n")