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