#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  scanf("%d", &n);
  vector<int> V(n);
  vector<int> S(n);
  int sum = 0;
  for (int i = 0; i < n; i++) {
    scanf("%d", &V[i]);
    sum += V[i];
    S[i] = sum;
  }
  int r = 0;
  for (int i = 0; i < n - 1; i++) {
    if (S[i] == (S[n - 1] - S[i])) r++;
  }
  printf("%d", r);
  return 0;
}
