Polyamines or polyimines, or derivatives thereof (poly)amines and imines; derivatives thereof (substituted by a macromolecular group containing 30C)