ways_get_id_of_weight_quickly