multiply three terms in canonical ordering