p_member = gets.to_f / 10000 p_public = 1 - p_member j_member = 0.99 * p_member + 0.01 * p_public p p_public / j_member