import math
import itertools
N = int(input())
a = list(map(int,input().split()))
k = 0
for i in itertools.permutations(a):
    k += 1
    ans = "Yes"
    for j in range(1,N):
        if abs(a[j] - a[j-2]) != a[j-1]:
            ans = "No"
            break
    if ans == "Yes":
        print(ans)
        exit()
    if k > 1000:
        print("Yes")
        exit()
print(ans)