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