A note on the position of a monomial with respect to the lexicographic or reverse lexicographic order