#include <bits/stdc++.h>
using namespace std;
int main() {
  ios::sync_with_stdio(false);
  cin.tie(0);
  int N;
  cin >> N;
  vector<int> A(N);
  for (int i = 0; i < N; i++) {
    cin >> A[i];
  }
  sort(A.begin(), A.end());
  for (int i = 0; i < N; i++) {
    if (i == 0 && A[N - 1] - A[1] == A[i])
      continue;
    else if (i == N - 1 && A[N - 2] + A[0] == A[i])
      continue;
    else if (A[i + 1] - A[i - 1] == A[i])
      continue;
    cout << "No" << '\n';
    return 0;
  }
  cout << "Yes" << '\n';
  return 0;
}
