#include <bits/stdc++.h>
using namespace std;
int cum1[100005];
int a[100005];
int main() {
  ios::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  int n;
  cin >> n;
  for (int i = 0; i < n; i++) cin >> a[i];
  if (n == 1) {
    cout << 0 << endl;
    return 0;
  }
  for (int i = 1; i <= n; i++) {
    cum1[i] += cum1[i - 1] + a[i - 1];
  }
  int res = 0;
  for (int i = 1; i < n; i++)
    if (cum1[i] == cum1[n] - cum1[i]) res++;
  cout << res << endl;
  return 0;
}
