When, in these acylating reactions, there is a group active to the reaction among the groups R1, R2 and R4, the active group may be protected in any manner with a conventional protecting group at the time of reaction, and the protecting group can be removed after the reaction in a conventional manner.