#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  vector<int> strip;
  int sum = 0;
  for (size_t i = 0; i < n; ++i) {
    int v;
    cin >> v;
    strip.push_back(v);
    sum += v;
  }
  int s = 0, ans = 0;
  for (size_t i = 0; i < strip.size() - 1; ++i) {
    s += strip[i];
    if (sum - s == s) ++ans;
  }
  cout << ans;
  return 0;
}
