#include <bits/stdc++.h>
using namespace std;
const double eps = 1e-8;
const int dx[] = {1, 0, -1, 0, -1, -1, 1, 1};
const int dy[] = {0, 1, 0, -1, -1, 1, -1, 1};
const int OO = INT_MAX;
int main() {
  int n;
  cin >> n;
  vector<int> cumulative(n + 1, 0);
  for (int i = 1; i < n + 1; i++) {
    cin >> cumulative[i];
    cumulative[i] += cumulative[i - 1];
  }
  int count = 0;
  for (int i = 1; i < n; i++) {
    if (cumulative[i] == cumulative[n] - cumulative[i]) {
      count++;
    }
  }
  cout << count << '\n';
  return 0;
}
