#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, s = 0;
  cin >> n;
  int arr[n];
  for (int i = 0; i < n; i++) {
    cin >> arr[i];
    s += arr[i];
  }
  int count = 0, k = 0;
  for (int i = 0; i < n - 1; i++) {
    k += arr[i];
    if (k == (s - k)) count++;
  }
  cout << count;
}
