To provide a new compound having an inhibitory effect on HER2 and taking a cytostatic effect.It is also intended to provide a useful medicine in the prevention and / or treatment of a disease that involves HER2, particularly cancer, on the basis of the inhibitory effect on HER2.The present invention provides a compound of formula (I) in which X, y, Z1, Z2, Z3, Z4, W, N, R1, R2 and R3 have the meanings as defined in the specification, or a salt thereof.para fornecer um novo composto tendo um efeito inibitório sobre her2 e tendo um efeito citostático. também se destina a fornecer um medicamento útil na prevenção e/ou tratamento de uma doença que envolve her2, particularmente, câncer, na base do efeito inibitório sobre her2. a presente invenção fornece um composto de fórmula (i) em que x, y, z1, z2, z3, z4, w, n, r1, r2 e r3 têm significados conforme definidos na presente especificação, ou um sal deste.