Determination of abundances in the atmospheres of F-, G-, and K-dwarfs