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