#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  scanf("%d", &n);
  int a[100010];
  for (int i = 0; i < n; i++) scanf("%d", &a[i]);
  for (int i = 1; i < n; i++) a[i] += a[i - 1];
  int count = 0;
  for (int i = 0; i < n - 1; i++)
    if (a[i] == a[n - 1] - a[i]) {
      count++;
    }
  printf("%d\n", count);
}
