#include <bits/stdc++.h>
using namespace std;
int main() {
  long n;
  cin >> n;
  vector<int> v;
  long sum = 0;
  for (int i = 0; i < n; i++) {
    long d;
    cin >> d;
    sum += d;
    v.push_back(d);
  }
  long mid = sum / 2;
  if (2 * mid != sum) {
    cout << 0 << endl;
    return 0;
  }
  sum = v[0];
  int count = 0;
  for (int i = 1; i < n; i++) {
    if (sum == mid) count++;
    sum += v[i];
  }
  cout << count << endl;
  return 0;
}
