1. The compounds of formulas Ia-Ib:, their stereoisomers or pharmaceutically acceptable salts, where: A represents CR or N; X represents CR or N; R independently represents a hydrogen atom, a halogen atom, C-C1-6 alkyl, C-Cycloalkyl, -CF, -OR, -SR, -OCF, -CN, -NO, -NRSOR, -NRC (O) R or -NRR, where both R can not represent a hydrogen atom at the same time, and where alkyl and cycloalkyl are optionally substituted with a halogen atom, OR, - NRR or phenyl; R and R independently represent a hydrogen atom, C-Cialkyl, C-Salkenyl, C-Ciqnyl, a halogen atom, - (Ci-Ci-alkyl) CN, - (Ci-Ci-alkyl) OR, - (Ci-Ci-alkyl) SR, - (C-C1-6alkyl) NRR, - ( -Salkyl) CF, -O (C-C1-6alkyl) CF, - (C-C1-6alkyl) NO, - (С-C1-6alkyl) С (O) R, - (С-C1-6alkyl) С (O) OR, - (С- C1-6alkyl) C (O) NRR, - (C-C1-6alkyl) NRC (O) R, - (C1-6alkyl) S (O) R, - (C1-6alkyl) NRS (O) R, - (C1-6alkyl) S (O) NRR, - (C-C1-6alkyl) (C-Cycloalkyl), - (C1-6alkyl) (3-6 membered heterocyclyl), - (C-C1-6alkyl) (5-6 membered heteroaryl) or - ( C-C1-6alkyl) phenyl, where R and R are independently optionally substituted with R; Ris -NH, -NH-, -NRR, -NRC (O) -, -NRC (O) O-, -NRC (O) NR-, -NRS ( O) - or -NRS (O) NR-; R is absent, represents a hydrogen atom, C-Cialkyl, C-Cialkenyl, Ci-Cialkynyl, Ci-Cycloalkyl, phenyl or 3-10 membered heterocyclyl, where R is optionally substituted with R; Ri R each independently represents a hydrogen atom , C-alkyl or C-cycloalkyl, where alkyl and cycloalkyl are independently optionally substituted with halogen, oxo, -ORili -NRR; either R and R are independently taken together with the atom to which they are attached to form a 3-6 membered heterocyclyl optionally substituted by a halogen atom, oxo, -NRR or C-C1-6alkyl; R and R each independently represent a hydrogen atom, C-C1-6alkyl, C-Cycloalkyl, phenyl, 3-6 membered heterocyclyl or 5-6 membered heteroaryl, where alkyl, cycloalkyl, phenyl, heterocyclyl or heteroaryl are independently optionally substituted with R; either R and R independently1. С