#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  vector<int> A(n);
  for (int i = 0; i < n; i++) cin >> A[i];
  vector<int> prefix(n);
  prefix[0] = A[0];
  for (int i = 1; i < n; i++) prefix[i] += A[i] + prefix[i - 1];
  vector<int> suffix(n);
  suffix[n - 1] = A[n - 1];
  for (int i = n - 2; i >= 0; i--) suffix[i] += A[i] + suffix[i + 1];
  int cnt = 0;
  for (int i = 0; i < n - 1; i++) {
    if (prefix[i] == suffix[i + 1]) cnt++;
  }
  cout << cnt << endl;
}
