FIELD: medicine, pharmaceutics.SUBSTANCE: invention refers to compounds of general formula (I) wherein R1 represents (a) C1-6alkyl optionally containing 1-3 substitutes specified in C1-6alkylcarbonyloxy, hydroxy and a halogen atom, (b) C3-6cycloalkyl, (c) phenyl or (d) mono-C1-6alkylamino; R5 represents a hydrogen atom; R6 represents a hydrogen atom; X represents an oxygen atom or a sulphur atom; m is equal to 1; the ring A is an unsaturated 5-member ring optionally containing a substitute specified in (a) C1-6alkyl optionally containing 1-3 substitutes specified in phenyl, hydroxy and a halogen atom, C1-6alkylcarbonyl, benzyloxy and pyridyl, (b) C3-6cycloalkyl, (c) phenyl or (d) C1-6alkoxy, (e) mercapto, (f) C1-6alkylthio or (g) di-C1-3alkylamino; the ring B is an unsubstituted phenyl; the ring C is a saturated or unsaturated 5-member ring optionally containing a substitute specified in C1-6alkyl and hydroxy. Also the invention refers to the intermediate compounds of formula (II) and to the pharmaceutical composition containing the compounds of formula (I) showing melatonin agonist activity.EFFECT: preparing the compounds of formula (I) as melatonin agonists.14 cl, 7 dwg, 2 tbl, 98 exИзобретение относится к соединениям общей формулы (I), в которой R1 представляет (а) С1-6алкил, необязательно содержащий 1-3 заместителя, выбранных из С1-6алкилкарбонилокси, гидрокси и атома галогена, (b) С3-6циклоалкил, (с) фенил или (d) моно-С1-6алкиламино; R5 представляет атом водорода; R6 представляет атом водорода; Х представляет атом кислорода или атом серы; m равно 1; кольцо А является ненасыщенным 5-членным кольцом, необязательно содержащим заместитель, выбранный из (а) С1-6алкила, необязательно содержащего 1-3 заместителей, выбранных из фенила, гидрокси и атома галогена, С1-6алкилкарбонила, бензилокси и пиридила, (b) С3-6циклоалкила, (с) фенила или (d) С1-6алкокси, (е) меркапто, (f) C1-6алкилтио или (g) ди-С1-3алкиламино; кольцо В является незамещенным фенилом; кольцо С яв