#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, a, mid, ans = 0;
  int all[100001];
  all[0] = 0;
  cin >> n;
  for (int i = 1; i <= n; i++) {
    cin >> a;
    all[i] = all[i - 1] + a;
  }
  if (all[n] % 2 == 1) {
    cout << 0;
    return 0;
  }
  mid = all[n] / 2;
  for (int i = 1; i < n; i++) {
    if (all[i] == all[n] - all[i]) ans++;
  }
  cout << ans;
}
