N=int(input())
a=list(map(int, input().split()))
b=sorted(a)
result = True
for idx in range(len(b)-1):
    prev = b[idx-1]
    next = b[idx+1]
    diff = next - prev
    if idx == 0:
        diff = -diff
    if diff == b[idx]:
        result_tmp = True
    else:
        result_tmp = False
        result = False
        break
diff = abs(b[0] + b[len(b)-2])
if diff != b[len(b)-1]:
    result = False
str = "Yes" if result == True else "No"
print(str)