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 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.

Input example #1

0 0

Output example #1

0

Input example #2

x+1 x-1

Output example #2

x^2-1