FIELD: medicine, pharmaceutics.SUBSTANCE: invention relates to formula (VIII) compounds and their pharmaceutically acceptable salts. Invention compound possess antagonistic effect with respect to P2Xand/or P2Xreceptor. In formula(VIII) Zand Z, each independently represent oxygen atom or sulphur atom; D ring represents benzene ring, pyridine ring, pyrimidine ring, pyrazine ring or pyridazine ring; B ring represents 6-membered aromatic heterocyclic ring with 1-3 nitrogen atoms, 5-membered aromatic heterocyclic ring with one nitrogen atom and one oxygen atom, one sulphur atom, one nitrogen atom and one sulphur atom, one oxygen atom, two nitrogen atoms, one oxygen atom and two nitrogen atoms, one sulphur atom and two nitrogen atoms, four nitrogen atoms or three nitrogen atoms, or non-substituted 9-membered condensed aromatic heterocyclic ring with one nitrogen atom and one oxygen atom or two nitrogen atoms. Values of other radicals are given in invention formula.EFFECT: invention relates to formula (IX) compounds, formula (VII) compounds, formula (X) compounds, structural formulae and values of radicals of which are given in invention formula, to pharmaceutical composition, possessing antagonistic effect with respect to P2Xand/or P2Xreceptor, to method of treatment and/or prevention of disease, associated with P2Xand/or P2Xreceptor, to pharmaceutical composition, possessing analgesic effect and to method of obtaining formula (VIII) compound.34 cl, 586 tbl, 107 exИзобретение относится к соединениям формулы (VIII) и их фармацевтически приемлемым солям. Соединения изобретения обладают антагонистическим эффектом в отношении P2Xи/или P2Xрецептора.В формуле (VIII) Zи Z, каждый независимо, представляют собой атом кислорода или атом серы; кольцо D представляет собой бензольное кольцо, пиридиновое кольцо, пиримидиновое кольцо, пиразиновое кольцо или пиридазиновое кольцо; кольцо В представляет собой 6-членное ароматическое гетероциклическое кольцо с 1-3 атомами азота, 5-членное а