Multiplying polynomials
Very easy
Execution time limit is 1 second
Runtime memory usage limit is 64 megabytes
We introduce a symbolic form of two polynomials in x with integer coefficients. Output of the product in descending order of degrees - also in a symbolic form.
The degree of initial polynomials are not over 10, the coefficients of initial polynomials modulo no more than 10^4.
Input
The two lines are polynomials.
Output
In a single line shows a polynomial.
Examples
Input #1
Answer #1
Input #2
Answer #2
Submissions 1K
Acceptance rate 22%