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