The degree of a polynomial is the highest degree of any of its monomials.

### Examples

The degree of the monomial 10*a*^{7}*b*^{3}*c*^{2} is 12, since: 7 + 3 + 2 = 12.

The degree of the polynomial 4*x*² − 7*x* + 15 is 2.

The degree of the polynomial 6*x*^{3}*y*^{2} − *x*^{2}*y*^{4} + 2*xy* + 3 is 6.