#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  vector<int> a(n);
  for (int i = 0; i < n; i++) cin >> a[i];
  sort(a.begin(), a.end());
  if (n % 2) {
    if (n == 3) return 1;
    if (a[0] != 0 || a.front() != a.back())
      cout << "No" << endl;
    else
      cout << "Yes" << endl;
    return 0;
  } else
    return 1;
}
