The first line contains two space-separated integers n and m (0?≤?n,?m?≤?100)
— degrees of polynomials P(x) and Q(x)correspondingly.
The second line contains n?+?1 space-separated integers — the factors of polynomial P(x): a0, a1,
..., an?-?1, an(?-?100?≤?ai?≤?100,?a0?≠?0).
The third line contains m?+?1 space-separated integers — the factors of polynomial Q(x): b0, b1,
..., bm?-?1, bm(?-?100?≤?bi?≤?100,?b0?≠?0).