Recently, Colin became addicted to the theory of additive combinatorics, which is about counting additive structures in sets. This theory has seen exciting developments and dramatic changes in direction in recent years, thanks to its connections with areas such as number theory, ergodic theory, and graph theory.
One fundamental problem in additive combinatorics is about
sumsets. For two sets of integers

, we define the sumset of

and

to be the set of all sums of an element from

with an element from

. That is,
Now Colin gives you three sets

; could you determine whether

is the sumset of

and

?
输入描述:
The first line contains three integers
, representing the size of
,
, and
.
The second line contains
integers
, representing the numbers in
.
The third line contains
integers
, representing the numbers in
.
The fourth line contains
integers
, representing the numbers in
.
It's guaranteed that numbers in the same set are pairwise distinct.
输出描述:
If
is the sumset of
and
, output YES. Otherwise, output NO.