#include <bits/stdc++.h>
using namespace std;
int a[25];
bool vis[25];
int main(int argc, char *argv[]) {
  int n;
  cin >> n;
  for (int i = 0; i < n; ++i) {
    cin >> a[i];
    a[i];
  }
  sort(a, a + n);
  if (a[n - 1] != n) {
    puts("NO");
    return 0;
  }
  for (int i = 0; i < n; ++i) {
    int k = 1;
    for (int j = i - 1; j >= 0 && a[i] != k; --j) {
      if (!vis[j] && a[i] >= a[j] + 2 && a[j] + k <= a[i]) {
        k += a[j];
        vis[j] = true;
      }
    }
    if (a[i] != k) {
      puts("NO");
      return 0;
    }
  }
  puts("YES");
  return 0;
}
