#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  int arrey[n];
  int p = 0;
  for (int i = 0; i < n; i++) {
    cin >> arrey[i];
    p += arrey[i];
  }
  int res = 0;
  p -= arrey[0];
  int q = arrey[0];
  for (int i = 1; i < n; i++) {
    if (q == p) res++;
    q += arrey[i];
    p -= arrey[i];
  }
  cout << res << endl;
}
