#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, sumt = 0, sum = 0, ans = 0;
  cin >> n;
  vector<int> nuz;
  nuz.resize(n);
  for (int i = 0; i < n; ++i) cin >> nuz[i];
  for (int i = 0; i < n; ++i) sum += nuz[i];
  for (int i = 0; i < n - 1; ++i) {
    sumt += nuz[i];
    if (sumt == sum - sumt) ans++;
  }
  cout << ans << endl;
}
