#include <bits/stdc++.h>
using namespace std;
int main() {
  long long int n, cnt = 0;
  vector<long long int> v;
  cin >> n;
  for (long long int i = 0; i < n; i++) {
    long long int a;
    cin >> a;
    v.push_back(a);
  }
  for (long long int i = 1; i < n; i++) {
    v[i] = v[i] + v[i - 1];
  }
  for (long long int i = 0; i < n - 1; i++) {
    if (v[n - 1] - v[i] == v[i]) cnt++;
  }
  cout << cnt << endl;
  return 0;
}
