#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, sum = 0;
  cin >> n;
  int a[n], x = 0, c = 0;
  for (int i = 0; i < n; i++) {
    cin >> a[i];
    sum += a[i];
  }
  for (int i = 0; i + 1 < n; i++) {
    x += a[i];
    if (2 * x == sum) c++;
  }
  cout << c;
}
