#include <bits/stdc++.h>
using namespace std;
int n;
int arr[100010];
int pre[100010];
int ans = 0;
int main() {
  std::ios::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  cin >> n;
  for (long long int i = (1); i <= (n); i++) {
    cin >> arr[i];
    pre[i] = pre[i - 1] + arr[i];
  }
  if (n == 1) {
    cout << 0 << endl;
    return 0;
  }
  for (long long int i = (1); i <= (n - 1); i++) {
    if (2 * pre[i] == pre[n]) {
      ++ans;
    }
  }
  cout << ans << endl;
  return 0;
}
