#include <bits/stdc++.h>
using namespace std;
int main() {
  int i, j, k, n, c = 0, sum = 0;
  cin >> n;
  int a[n];
  for (i = 0; i < n; i++) {
    cin >> a[i];
    sum += a[i];
  }
  if (sum % 2 != 0 || n == 1)
    cout << 0;
  else {
    k = 0;
    for (i = 0; i < n - 1; i++) {
      k = k + a[i];
      if (k == sum / 2) c++;
    }
    cout << c;
  }
  return 0;
}
