Weigh up how strong a base an amine really is, then link monomers into a chain two different ways and keep track of every atom that leaves.
The nitrogen keeps a lone pair of electrons. That pair can take a proton from water, which leaves hydroxide behind.
Switch to a polymer view to follow the mass. Addition chains keep every atom. Condensation chains drop one small molecule at every link, and the count is tracked here.