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