#include <bits/stdc++.h>
using namespace std;
const int N = 1e5 + 5;
int a[N];
int main() {
  int i, j, k = 0, n;
  cin >> n;
  long long s = 0, t;
  for (i = 1; i <= n; i++) {
    cin >> a[i];
    s += a[i];
  }
  if (s % 2 == 1) {
    cout << "0\n";
    return 0;
  }
  t = 0;
  for (i = 1; i < n; i++) {
    s -= a[i];
    t += a[i];
    if (s == t) k++;
  }
  cout << k << endl;
}
