def monomial_to_constraint(monomial, letters):
    """Given a monomial return the multiplicity of each letter, counting conjugates as negatives."""
    constr = []
    for l in letters:
        constr.append(monomial.s.count(l) - monomial.s.count(l.upper()))
    return constr
