#include <bits/stdc++.h>
using namespace std;
long long int arr[100005];
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  int n;
  cin >> n;
  long long int sum = 0;
  for (int i = 0; i < n; ++i) {
    cin >> arr[i];
    sum = sum + arr[i];
  }
  if (sum & 1) {
    cout << "NO" << endl;
    return 0;
  }
  sum = sum / 2;
  multiset<long long int> m1, m2;
  for (int i = 0; i < n; ++i) {
    m2.insert(arr[i]);
  }
  for (int i = 0; i < n; ++i) {
    m1.insert(arr[i]);
    m2.erase(m2.find(arr[i]));
    sum = sum - arr[i];
    if (sum == 0 || m1.find(-sum) != m1.end() || m2.find(sum) != m2.end()) {
      cout << "YES" << endl;
      return 0;
    }
  }
  cout << "NO" << endl;
}
