#include <bits/stdc++.h>
using namespace std;
void solve() {
  int n, sum = 0, s = 0, k = 0;
  cin >> n;
  int a[n];
  for (int &i : a) {
    cin >> i;
    sum += i;
  }
  for (int i = 0; i < n - 1; i++) {
    s += a[i];
    sum -= a[i];
    if (s == sum) k++;
  }
  cout << k;
}
int main() {
  int t = 1;
  while (t--) {
    solve();
  }
}
