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