uva 10302 – summation of polynomials