FIELD: medicine, pharmaceutics.SUBSTANCE: invention refers to compounds of formula , wherein: X and Y independently mean a nitrogen atom or the chain -CR4-, wherein R4 means a nitrogen atom; A means an aryl or heteroaryl group, with the above aryl or heteroaryl groups are optionally substituted by one or more groups specified in a halogen atom, a hydroxyl group, (C1-C4)alkyl group, (C3-C5)cycloalkyl group, (C1-C4)alkoxy group optionally substituted by (C1-C4)alkoxy group, a halogen alkyl group, a halogen alkoxy group; W means a halogen atom; Z means (C1-C4)alkylene group optionally substituted by one or more groups specified in a halogen atom and (C1-C4)alkyl group; B means the group -NR4R5, wherein R4 and R5 independently mean (C1-C4)alkyl group; R1 and R2 mean: - or R1 means a hydrogen atom and R2 mean (C1-C4)alkyl group, - or R1 and R2 together with a carbon atom whereto attached form a mono- or polycyclic system specified in: (C3-C8)cycloalkyl group, a bicyclic bridge group or a tetracyclic bridge group; the above system may be substituted by one or more hydroxyl groups; R3 means either the group C(O)R5, wherein R5 means (C1-C4)alkoxygroup optionally substituted by (C1-C4)alkoxygroup, or the group NR6R7, wherein R6 and R7 independently mean a hydrogen atom, (C1-C4)alkyl group, (C3-C5)cycloalkyl group, (C1-C4)alkylsulphonyl group, a halogenalkyl group, or the group -CH2XR8, wherein: - X means an oxygen atom and R8 means a hydrogen atom or (C1-C4)alkyl group, - or the nitrile group (CN); p means an integer equal to 0 or 1; the aryl group represents an aromatic monocyclic group containing 5 or 6 carbon atoms; the above cycle may be fused with a partially saturated heterocyclic group containing 5 or 6 atoms, including one or two heteroatoms, such as an oxygen atom; the heteroaryl group represents an aromatic cyclic group containing 5 or 6 atoms, including one or two heteroatoms, such as nitrogen; in the form of a base or an additive salt with an acid or base, as wel