#include <bits/stdc++.h>
using namespace std;
int n, a[100005], m, c;
int main() {
  cin >> n;
  for (int i = 1; i <= n; i++) {
    cin >> m;
    a[i] = a[i - 1] + m;
  }
  for (int i = 1; i < n; i++) {
    if (a[i] == a[n] - a[i]) c++;
  }
  cout << c;
  return 0;
}
