import collections
N = int(input())
a = list(int(i) for i in input().split())
chk = sum(a)
if N == 3:
	if ((chk+2)&(chk+1)) == 0:
		print("Yes")
	else:
		print("No")
else:
	l = collections.Counter(a)
	if list(l.values()) == [2] * len(l.values()):
		chk=chk//2
		if ((chk+2)&(chk+1)) == 0:
			print("Yes")
		else:
			print("No")
	else:
		print("No")