1. A compound of formula (I): or a pharmaceutically acceptable salt thereof, wherein: Ring A is aryl, heterocycle or heteroaryl each independently represent an acyl, alkoxy, alkoxycarbonyl, alkyl, alkylthio, alkynyl, amino, aminocarbonyl, cyano, cycloalkyl, carbamoyl , hydrogen, hydroxyl, halogen, nitro, sulfamoyl, sulfinyl, sulfonamide or sulfonyl R acyl, alkoxy, alkyl, alkylthio, cycloalkyl, cyano, a halogen atom or a hydrogen atom ring B is selected from: absence viii) aryl, heterocycle or heteroaryl K is selected from: ix) UTS t hat x) (C = O) NRili (C = S) NR, where R alkyl, acyl, cycloalkyl, or hydrogen atom L represents O, S, S = O, SO, (C = O) O, NR, NRC = O, NRSO, SONR, NR (C = O) NH, NR (C = S) NH, (C = O) NRili (C = S) NR D represents CRili N Hvybran from: xi) absence xii) CHRili CRR, wherein R or R acyl, alkyl, cycloalkyl or hydrogen xiii) O or NR, wherein X, Hee Hpredstavlyayut CHRili CRR Hvybran of: iv) lack v) CHRili CRR vi) O or NR, wherein X, hee Hpredstavlyayut CHRili CRR Hvybran from: iii) CHRili CRR iv) O or NR, wherein X, hee Hpredstavlyayut CHRili CRR Hvybran from: iii) CHRili CRR iv) C = O, wherein X, hee Hpredstavlyayut CHRili CRR m is 0-3 n is 0-3 o is 0-3 and Pharmaceuti cally acceptable salts and solvaty.2. Compounds of general formula (Ia): or a pharmaceutically acceptable salt thereof, wherein: A, B, D, K, L, m, n and are as defined herein and R alkyl, cycloalkyl or hydrogen p is 0-2.3. Compounds of general formula (Ib): or a pharmaceutically acceptable salt thereof, wherein: A, B, D, K, L, m, n and are as defined herein and R alkyl, cycloalkyl or hydrogen q is 0-3.4. Compounds of general formula (Ic): or a pharmaceutically acceptable salt thereof, wherein: A, B, D, K, L, m, n and are as defined herein and R alkyl, cycloalkyl or hydrogen r is equal to 0-4.5. Compounds of general formula (Id): or a pharmaceutically acceptable salt thereof, wherein: A, B, D, K, L, m, n and are as defined herein and1. Соединение формулы (I):или его фармацев