#include <bits/stdc++.h>
int a[100005], b[1001];
using namespace std;
int main() {
  int n, i = 1, m = 0, k = 0, c = 0;
  cin >> n;
  for (; i <= n; i++) {
    cin >> a[i];
    c += a[i];
  }
  for (i = 1; i < n; i++) {
    c -= a[i];
    k += a[i];
    if (k == c) {
      m++;
    }
  }
  cout << m;
}
