The present invention provides a compound having a lysine specific demethylase 1 inhibitory action, and useful as a medicament such as a prophylactic or therapeutic agent for schizophrenia, Alzheimers disease, Parkinsons disease or Huntingtons disease, and the like. The present invention relates to a compound represented by the formula wherein A is a hydrocarbon group optionally having substituent(s), or a heterocyclic group optionally having substituent(s) B is a benzene ring optionally having further substituent(s) R 1 , R 2 and R 3 are each independently a hydrogen atom, a hydrocarbon group optionally having substituent(s), or a heterocyclic group optionally having substituent(s) A and R 1 are optionally bonded to each other to form, together with the adjacent nitrogen atom, a cyclic group optionally having substituent(s) and R 2 and R 3 are optionally bonded to each other to form, together with the adjacent nitrogen atom, a cyclic group optionally having substituent(s), or a salt thereof.