FIELD: chemistry.SUBSTANCE: invention relates to compounds of formula (I), having histone deacetylase (HDAC) enzyme inhibiting action, stereoisomers, hydrates, solvates and pharmaceutically acceptable salts thereof, compounds of formula (II), compounds selected from a list, a method of producing compounds of formula (I), a pharmaceutical composition, an inhibition method and methods of treating using compounds of formula (I). In formulaeandR denotes substituted or unsubstituted groups selected from (C6-C10)aryl, (C3-C12)cycloalkyl, heteroaryl, (C6-C10)aryl (C1-C6)alkyl and heterocyclyl where the heterocyclyl hereinafter is a 5-10-member ring radical which consists of carbon atoms and 1-5 heteroatoms selected from nitrogen, oxygen and sulphur, and heteroaryl hereinafter is an aromatic heterocyclyl, and each aryl, cycloalkyl, heteroaryl, arylalkyl and heterocyclyl can be substituted with one or more substitutes selected from halogens, including fluorine, chlorine, bromine, iodine, (C1-C6)alkyl, (C1-C6)alkoxy, (C6-C10)aryl, halogen(C1-C6)alkyl, (C6-C10)aryl(C1-C6)alkoxy, -O-(C3-C12)cycloalkyl, -O-CH2-(C3-C12)cycloalkyl, hydroxyl, NRaRb and ORa, where Ra and Rb independently denote (C1-C6)alkyl and aryl R1 denotes (C6-C10)aryl R2 and R3 independently denote hydrogen, (C1-C6)alkyl, -COOR5, -CONR5R6, -CH2NR5R6, -CH2CH2NR5R6, -CH2CH2OH or -CH2OH provided that one of R5 or R6 is hydrogen or unsubstituted alkyl, the other is neither hydrogen nor unsubstituted alkyl R5 and R6 independently denote hydrogen, (C1-C6)alkyl, (C3-C12)cycloalkyl, (C6-C10)aryl, (C6-C10)aryl(C1-C6)alkyl, heteroaryl or heteroaryl(C1-C6)alkyl, which can be unsubstituted or substituted or R5 and R6 can be combined to form a saturated or unsaturated 3-8-member ring having 0-2 heteroatoms, including N, O or S where the heteroaryl hereinafter is a 5-10-member ring radical consisting of carbon atoms and 1-5 heteroatoms selected from nitrogen, oxygen and sulphur, and each alkyl, cycloalkyl, aryl, arylalkyl, h