PROGRAMMING:Multiplication and addition of polynomials of one variable
Design function to find the product and sum of two polynomials of one variable.
###Input format:
The input is divided into two lines. In each line, the number of polynomial non-zero terms is given, and then a polynomial non-zero term coefficient and exponent (the absolute value is not more than 1000) are input in the way of exponential descent. Numbers are separated by spaces.
###Output format:
The output is divided into two lines, and the coefficients and exponents of the product polynomial and the non-zero term of the sum polynomial are output in exponential descending mode. The numbers are separated by spaces, but there should be no extra spaces at the end. Zero polynomial should output '0'.
###Input example:
```in
4 3 4 -5 2 6 1 -2 0
3 5 20 -7 4 3 1
```
###Output example:
```out
15 24 -25 22 30 21 -10 20 -21 8 35 6 -33 5 14 4 -15 3 18 2 -6 1
5 20 -4 4 -5 2 9 1 -2 0
```
answer:If there is no answer, please comment
###Input format:
The input is divided into two lines. In each line, the number of polynomial non-zero terms is given, and then a polynomial non-zero term coefficient and exponent (the absolute value is not more than 1000) are input in the way of exponential descent. Numbers are separated by spaces.
###Output format:
The output is divided into two lines, and the coefficients and exponents of the product polynomial and the non-zero term of the sum polynomial are output in exponential descending mode. The numbers are separated by spaces, but there should be no extra spaces at the end. Zero polynomial should output '0'.
###Input example:
```in
4 3 4 -5 2 6 1 -2 0
3 5 20 -7 4 3 1
```
###Output example:
```out
15 24 -25 22 30 21 -10 20 -21 8 35 6 -33 5 14 4 -15 3 18 2 -6 1
5 20 -4 4 -5 2 9 1 -2 0
```
answer:If there is no answer, please comment