For example, the desired compound is obtained by appropriately neutralizing the reaction mixture and, in the case where insolubles exist, removing them by filtration, adding a solvent immiscible with water such as ethyl acetate, washing with water, separating the organic layer containing the desired compound, drying with anhydrous magnesium sulfate or the like and evaporating the solvent.