The first line contains a positive integer K (1≤K≤10), the degree of the polynomial.
The second line contains the integer coefficients c1,c2,…,cK+1, listed from the highest-degree term down to the constant term (0≤ci≤10, 1≤c1≤10).
The third line contains two integers a and b, the start and end of the integration interval, and the number of subintervals N (0≤a<b≤10, 1≤N≤10).