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