n = int(input()) a = list(map(int,input().split())) def Base_10_to_n(X, n): X_dumy = X out = '' while X_dumy>0: out = str(X_dumy%n)+out X_dumy = int(X_dumy/n) return out for i in range(3**n): c = [0]*n k = Base_10_to_n(i, 3) if len(k) < n: k = (n-len(k))*"0" + k abc = [0]*3 for j in range(n): abc[int(k[j])] += a[j] if max(abc) == min(abc): print("Yes") exit() print("No")