These are compounds having formulas I and II or pharmaceutically acceptable salts or hydrates thereof, a method of preparing them and pharmaceutical compositions thereof. compounds having formulas i and ii have an isocitrate dehydrogenase 2 (idh2) inhibitory activity and are capable of treating idh2 mutation-induced cancers.trata-se de compostos que têm fórmulas i e ii ou sais ou hidratos farmaceuticamente aceitáveis dos mesmos, um método de preparação dos mesmos e composições farmacêuticas dos mesmos. os compostos que têm fórmulas i e ii têm uma atividade inibidora de isocitrato desidrogenase 2 (idh2) e têm capacidade para tratar cânceres induzidos por mutação idh2.