The present invention provides a compound having a PDE2A selective inhibitory action, which is useful as an agent for the prophylaxis or treatment of schizophrenia, Alzheimer's disease and the like. The present invention is a compound represented by the formula (1): wherein each symbol is as described in the specification, or a salt thereof.