e-olymp
Problems

Multiplying polynomials

Multiplying polynomials

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 over10, the coefficients of initial polynomials modulo no more than104.

Input

The two lines are polynomials.

Output

In a single line shows a polynomial.

Time limit 1 second
Memory limit 64 MiB
Input example #1
0
0
Output example #1
0