#include <bits/stdc++.h>
using namespace std;
void pk() {
  long long n;
  cin >> n;
  long long arr[n];
  double sum = 0;
  for (long long i = 0; i < n; i++) {
    cin >> arr[i];
    sum += arr[i];
  }
  sum = sum / 2;
  double s = 0;
  long long cn = 0;
  for (long long i = 0; i < n - 1; i++) {
    s += arr[i];
    if (s == sum) {
      cn++;
    }
  }
  cout << cn;
}
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  long long t = 1;
  while (t--) {
    pk();
  }
}
