the present invention relates to substituted cyclopentanone and cyclohexanone derivatives and substituted cyclopentenone and cyclohexenone derivatives , which are useful as intermediates for pharmaceutical products and agricultural chemicals and especially useful for the synthesis of prostaglandins , and also to a process for producing the same .