#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  vector<int> v;
  int x;
  for (int i = 0; i < n; i++) {
    cin >> x;
    v.push_back(x);
  }
  int ways = 0;
  int sum = v[0];
  int sum2 = 0;
  for (int j = 1; j < n; j++) {
    sum2 += v[j];
  }
  for (int i = 1; i < n; i++) {
    if (sum == sum2) ways++;
    sum += v[i];
    sum2 -= v[i];
  }
  cout << ways << endl;
  return 0;
}
