FIELD: medicine, pharmaceutics.SUBSTANCE: invention refers to compounds of formula I wherein R means C1-6alkyl, C1-6halogenalkyl, hydroxy-C1-6alkyl, hydroxygroup or halogen; m, n is equal to 0 or 1; Z1 means CH or NH; Z2 means CH or N; Z3 means CR1, N or NR2; R1 means H, C1-6alkyl, C3-7cycloalkyl, cyanogroup, cyano-C1-6alkyl or halogen; R2 means H or C1-6alkyl; X means CH, CR' or N; X' means CH, CR' or N; r is equal to 1; Y means CH or CR'; R' means R'a or R'b; R'a means a halogen or cyanogroup; R'b means C1-6alkyl, heterocycloalkyl specified in piperazinyl, morpholinyl, piperidinyl, thiomorpholinyl, azetidinyl, pyrrolidinyl, OR", SR", S(=O)2R" or NR"R", optionally substituted by one or more R'c; R'c means a hydroxygroup, oxogroup, cyanogroup, C1-6alkyl, pyridinyl, carboxy-C1-6alkyl, aminocarbonyl-C1-6alkylaminogroup, C1-6alkylaminogroup, C1-6dialkylaminogroup or C1-6alkoxygroup; R" means H, C1-6alkyl, hydroxy-C1-6alkyl, piperidinyl, C3-7cycloalkyl or pyridinyl; Q means S(=O)2Q1, C(=O)Q2, C(=O)OQ3 or Q4; Q1 means C1-6alkyl, C3-7cycloalkyl-C1-6alkyl, C1-6alkylaminogroup or C1-6dialkylaminogroup optionally substituted by one or more Q1'; each Q1' independently means C1-6alkyl or cyanogroup; Q2 means C1-6alkyl optionally substituted by one or more Q2'; each Q2' independently means a cyanogroup; Q3 means C1-6alkyl; Q4 means C1-6alkyl, oxetanyl optionally substituted by one or more Q4'; each Q4' independently means a halogen, cyanogroup, cyano-C1-6alkyl; p is equal to 0, 1 or 2; q is equal to 1 or 2; each means a single bond or a double bond; provided one of Z1 and Z2, and Z3 and Z3 bonds are double and single.EFFECT: compounds of formula I as JAK inhibitors.23 cl, 2 tbl, 121 exИзобретение относится к соединениям формулы I, в которой R обозначает C1-6алкил, C1-6галогеналкил, гидрокси-C1-6алкил, гидроксигруппу или галоген; m, n равно 0 или 1; Z1 обозначает CH или NH; Z2 обозначает CH или N; Z3 обозначает CR1, N или NR2; R1 обозначает H, C1-6алкил, C3-7циклоалкил, циан