This application relates to compounds of formula (I), (II), (III), (IV), (V), (VI), (IIIa), (IIIb), (IIIc), (IIId), (IIIe), (IIIf) and (IIIg). The compounds of formula (I) have the following structure: where Q, R, R, R, M, A and Y are as described herein. Compounds according to the present application modulate the activity of histone demethylase (HDMEs) and may be suitable for the prevention and / or treatment of diseases in the pathogenesis of which dysregulation of the genome, such as cancer, is involved.Настоящая заявка относится к соединениям формулы (I), (II), (III), (IV), (V), (VI), (IIIa), (IIIb), (IIIc), (IIId), (IIIe), (IIIf) и (IIIg). Соединения формулы (I) имеют следующую структуру:где Q, R1, R18, R19, М, А и Y являются такими, как описано в настоящем документе. Соединения согласно настоящей заявке модулируют активность гистоновых деметилаз (HDMEs) и могут быть пригодными для предотвращения и/или лечения заболеваний, в патогенезе которых задействована дисрегуляция генома, например, рака.