#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  long long int t = 1;
  while (t--) {
    long long n, sum = 0;
    cin >> n;
    int a[n];
    for (int i = 0; i < n; i++) {
      cin >> a[i];
      sum += a[i];
    }
    int sum1 = 0, c = 0;
    for (int i = 0; i < n - 1; i++) {
      sum1 += a[i];
      sum -= a[i];
      if (sum1 == sum) c++;
    }
    cout << c << endl;
  }
  return 0;
}
