You have segments, which are numbered from
to
. The length of the
-th segment is
.
A simple polygon is a polygon that does not intersect itself and has no holes. Note that a simple polygon has at least edges and its area is not equal to
.
Determine whether you can use all segments to form a simple polygon with
edges. Note that each segment must be used exactly once.
The first line contains one single integer
(
), denoting the number of segments.
The second line contains
integers
(
), denoting the length of the
-th segment.
It is guaranteed that
.
If you can use thesesegments to form a simple polygon, output YES, otherwise NO.