#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  ;
  int n;
  cin >> n;
  vector<int> v(n + 2), dp(n + 2);
  for (int i = 1; i <= n; i++) {
    cin >> v[i];
    dp[i] += dp[i - 1] + v[i];
  }
  if (dp[n] % 2) {
    cout << 0 << '\n';
    exit(0);
  }
  long long int res = 0;
  for (int i = 1; i < n; i++) {
    if (dp[n] - dp[i] == dp[i]) res++;
  }
  cout << res << '\n';
}
