#include <bits/stdc++.h>
using namespace std;
int t;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  long long int n, x, s = 0;
  cin >> n;
  vector<long long int> v;
  v.push_back(0);
  for (int i = 1; i <= n; i++) {
    cin >> x;
    s += x;
    v.push_back(v.back() + x);
  }
  int cnt = 0;
  for (int i = 1; i < n; i++) {
    if (v[n] - v[i] == v[i]) cnt++;
  }
  cout << cnt << endl;
}
