Compounds containing amino groups bound to a carbon skeleton having amino groups bound to acyclic carbon atoms of an unsaturated carbon skeleton containing rings other than six-membered aromatic rings