#include <bits/stdc++.h>
using namespace std;
int main() {
  int sum = 0;
  double half = 0;
  int count = 0;
  int n;
  int a[1000001];
  cin >> n;
  for (int i = 0; i < n; i++) {
    cin >> a[i];
    sum += a[i];
  }
  half = sum * 1.00 / 2;
  sum = 0;
  for (int j = 0; j < n; j++) {
    sum += a[j];
    if (sum == half) count++;
  }
  if (half == 0)
    cout << count - 1;
  else
    cout << count;
  return 0;
}
