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