The present invention aims to provide a compound having a PDE inhibitory action and useful as a medicament for the prophylaxis or treatment of schizophrenia and the like.A compound represented by the formula (1x):wherein each symbol is as described in the DESCRIPTION, or the formula (1): W1-W2 (1)wherein each symbol is as described in the DESCRIPTION,or a salt thereof.