SP1744 POLEVAL - Evaluate the polynomial
Description
Your task consists of evaluate a polynomial of degree **n** (0
Input Format
There will be multiple test cases, each one with **4** lines that are described below
**n**: degree of polynomial.
**c $ _{n} $ c $ _{n-1} $ … c $ _{2} $ c $ _{1} $ c $ _{0} $** : coefficients of the polynomial separated by a single space.
**k**: number of points to evaluate the polynomial.
**x $ _{1} $ x $ _{2} $ … $ _{} $ x $ _{k-1} $ x $ _{k} $** : points to evaluate the polynomial separated by a single space.
The final test case is a single line where **n = -1** and this case should not be processed.
Output Format
For each test case you should print **k + 1** lines of output, the very first line containing the case number and the following **k** lines with the result of the polynomial's evaluation in each one of the **k** given points. See the sample.