#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, s[100005];
  s[0] = 0;
  cin >> n;
  int v;
  for (int i = 1, _c = n; i <= _c; i++) {
    cin >> v;
    s[i] = s[i - 1] + v;
  }
  int res = 0;
  for (int i = 1, _c = n - 1; i <= _c; i++)
    if (s[i] * 2 == s[n]) res++;
  cout << res;
}
