import sys, time, random from collections import deque, Counter, defaultdict input = lambda: sys.stdin.readline().rstrip() ii = lambda: int(input()) mi = lambda: map(int, input().split()) li = lambda: list(mi()) inf = 2 ** 61 - 1 mod = 998244353 from heapq import heappop, heappush n = ii() a = li() t = [] a.sort() for v in a: heappush(t, v) while len(t) >= 2 and t[-1] * t[-2] <= 0: x = heappop(t) y = heappop(t) heappush(t, x + y) print('Yes' if len(t) == 1 else 'No')