The input contains two polynomials f(x) and g(x).
f(x) = amxm + a(m-1)x(m-1) + ⋯ + a1x1 + a0x0
g(x) = bnxn + b(n-1)x(n-1) + ⋯ + b1x1 + b0x0
where m,n∈N, 0≤m,n≤10.
Compute h(x) = f(x)g(x).
Note that all the coefficients are integers.
m
am a(m-1) … a1 a0
n
bn b(n-1) … b1 b0
Note that the coefficients are separated by a blank.
The coefficients of h(x) in descending power order.
Use "%d " to print each coefficient and there is a newline at the end.