#include <bits/stdc++.h>
using namespace std;
int main(int argc, char const *argv[]) {
  int n, arr[100005], i;
  int sum = 0;
  cin >> n;
  for (i = 0; i < n; i++) {
    cin >> arr[i];
    sum += arr[i];
  }
  int temp = 0, count = 0;
  for (i = 0; i < n - 1; i++) {
    temp += arr[i];
    if (temp == sum - temp) count++;
  }
  cout << count << endl;
  return 0;
}
