#include <bits/stdc++.h>
using namespace std;
const int N = 1e5 + 10;
int n, a[N], answer, sum, s;
int main() {
  cin >> n;
  for (int i = 0; i < n; i++) {
    cin >> a[i];
    sum += a[i];
  }
  if (sum % 2) {
    cout << 0;
    return 0;
  }
  sum /= 2;
  s = 0;
  for (int i = 0; i < n - 1; i++) {
    s += a[i];
    if (s == sum) answer++;
  }
  cout << answer;
  return 0;
}
