#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, total = 0;
  cin >> n;
  if (n == 1) {
    cout << 0;
    return 0;
  }
  int num[n];
  for (int i = 0; i < n; i++) {
    cin >> num[i];
    total += num[i];
  }
  int ans = 0;
  for (int x = 0, a = 0; x < n - 1; x++) {
    a += num[x];
    if (a * 2 == total) ans++;
  }
  cout << ans;
}
