Adds, multiplies, sorts, and prints polynomials