#include <bits/stdc++.h>
using namespace std;
int main() {
  int x;
  cin >> x;
  int arr[x];
  int sum = 0;
  int check = 0;
  int c = 0;
  for (int i = 0; i < x; i++) {
    cin >> arr[i];
    sum += arr[i];
  }
  if (sum % 2 == 0) {
    sum = sum / 2;
    for (int k = 0; k < x - 1; k++) {
      check += arr[k];
      if (check == sum) c++;
    }
    cout << c << endl;
  } else
    cout << "0" << endl;
  return 0;
}
