A method for producing a compound represented by the following formula: wherein R 1A, R 1B, R 2A, R 2B, R 3A and R 3B have the same meanings as those described below which comprises allowing a compound represented by the following formula to react with hydrogen sulphide or a salt thereof: wherein R 1A and R 1B, which are the same or different, each represent a hydrogen atom, an optionally protected carboxyl group, an optionally substituted C 1-6 alkyl group, an optionally substituted C 2-6 alkenyl group, an optionally substituted C 2-6 alkynyl group, an optionally substituted aryl group or an optionally substituted heterocyclic group; at least one of R 1A and R 1B is a substituent; R 2A and R 2B, which are the same or different, each represent a hydrogen atom, a hydroxyl group, a halogen atom, a cyano group, an azide group, an optionally protected amino group, an optionally protected carboxyl group, an optionally substituted C 1-6 alkyl group, an optionally substituted C 2-6 alkenyl group, an optionally substituted C 2-6 alkynyl group, an optionally substituted C 1-6 alkoxy group, an optionally substituted C 1-6 alkylthio group, an optionally substituted aryl group, an optionally substituted aryloxy group, an optionally substituted arylthio group, an optionally substituted heterocyclic group, an optionally substituted heterocyclic oxy group, an optionally substituted heterocyclic thio group or -OR 2a wherein R 2a represents a hydroxyl-protecting group; or R 2A and R 2B may together form an optionally substituted C 1-6 alkylidene group; R 3A and R 3B, which are the same or different, each represent a hydrogen atom, a hydroxyl group, a halogen atom, a cyano group, an azide group, an optionally protected amino group, an optionally protected carboxyl group, an optionally substituted C 1-6 alkyl group, an optionally substituted C 2-6 alkenyl group, an optionally substituted C 2-6 alkynyl group, an optionally substituted C 1-6 alkoxy group, an optionally substituted C 1-6 alkylthio group, an optionally substituted aryl group, an optionally substituted aryloxy group, an optionally substituted arylthio group, an optionally substituted heterocyclic group, an optionally substituted heterocyclic oxy group, an optionally substituted heterocyclic thio group or -OR 3a wherein R 3a represents a hydroxyl-protecting group; or R 3A and R 3B may together form an optionally substituted C 1-6 alkylidene group; or R 2A and R 3A may together form a bond or a group represented by -O-Y 1 -O- wherein Y 1 represents an optionally substituted C 1-6 alkylene group or an optionally substituted siloxane group; and the bond on the left side binds to a carbon atom binding to R 2A, and X represents a leaving group. wherein R 1A and R 1B, which are the same or different, each represent a hydrogen atom, an optionally protected carboxyl group, an optionally substituted C 1-6 alkyl group, an optionally substituted C 2-6 alkenyl group, an optionally substituted C 2-6 alkynyl group, an optionally substituted aryl group or an optionally substituted heterocyclic group; at least one of R 1A and R 1B is a substituent; R 2A and R 2B, which are the same or different, each represent a hydrogen atom, a hydroxyl group, a halogen atom, a cyano group, an azide group, an optionally protected amino group, an optionally protected carboxyl group, an optionally substituted C 1-6 alkyl group, an optionally substituted C 2-6 alkenyl group, an optionally substituted C 2-6 alkynyl group, an optionally substituted C 1-6 alkoxy group, an optionally substituted C 1-6 alkylthio group, an optionally substituted aryl group, an optionally substituted aryloxy group, an optionally substituted arylthio group, an optionally substituted heterocyclic group, an optionally substituted heterocyclic oxy group, an optionally substituted heterocyclic thio group or -OR 2a wherein R 2a represents a hydroxyl-protecting group; or R 2A and R 2B may together form an optionally substituted C 1-6 alkylidene group; R 3A and R 3B, which are the same or different, each represent a hydrogen atom, a hydroxyl group, a halogen atom, a cyano group, an azide group, an optionally protected amino group, an optionally protected carboxyl group, an optionally substituted C 1-6 alkyl group, an optionally substituted C 2-6 alkenyl group, an optionally substituted C 2-6 alkynyl group, an optionally substituted C 1-6 alkoxy group, an optionally substituted C 1-6 alkylthio group, an optionally substituted aryl group, an optionally substituted aryloxy group, an optionally substituted arylthio group, an optionally substituted heterocyclic group, an optionally substituted heterocyclic oxy group, an optionally substituted heterocyclic thio group or -OR 3a wherein R 3a represents a hydroxyl-protecting group; or R 3A and R 3B may together form an optionally substituted C 1-6 alkylidene group; or R 2A and R 3A may together form a bond or a group represented by -O-Y 1 -O- wherein Y 1 represents an optionally substituted C 1-6 alkylene group or an optionally substituted siloxane group; and the bond on the left side binds to a carbon atom binding to R 2A, and X represents a leaving group.