#include <bits/stdc++.h>
using namespace std;
vector<long long> vec;
int main() {
  long long num;
  cin >> num;
  for (long long i = 0; i < num; i++) {
    long long val;
    cin >> val;
    vec.push_back(val);
  }
  for (long long i = 1; i < num; i++) {
    vec[i] = vec[i] + vec[i - 1];
  }
  long long count = 0;
  for (long long i = 0; i < num - 1; i++) {
    long long temp = vec[num - 1];
    long long temp2 = vec[i];
    if ((vec[num - 1] - vec[i]) == vec[i]) {
      count++;
    }
  }
  cout << count << "\n";
}
