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