A compound of the formula (I)
1
or a pharmaceutically acceptable salt thereof, a hydrate thereof, a solvate thereof, an optically active compound thereof, a racemate thereof or a diastereomer mixture thereof has a superior tyrosine-specific protein kinase inhibitory activity and is useful as a pharmaceutical agent, particularly as an agent for the prophylaxis or treatment of various cancers, psoriasis or diseases caused by arteriosclerosis, and the like.