#include <bits/stdc++.h>
using namespace std;
int sumc, sum;
int main() {
  int n, counter = 0, m[100000];
  cin >> n;
  for (int i = 0; i < n; i++) {
    cin >> m[i];
    sumc = sumc + m[i];
  }
  for (int i = 0; i < n - 1; i++) {
    sum = sum + m[i];
    if (sum == (sumc - sum)) counter++;
  }
  cout << counter << endl;
  return 0;
}
