N=int(input())
a=list(map(int,input().split()))

a.sort()

if a[-1]==0:
    f=True
elif N%3!=0:
    f=False
elif a[0]==a[N//3-1] and a[N//3]==a[2*N//3-1] and a[2*N//3]==a[-1] and a[0]+a[N//3]==a[-1]:
    f=True
else:
    f=False

print('Yes' if f else 'No')