#include <bits/stdc++.h>
int main() {
  int i, n, j, k, count = 0, sum = 0, temp = 0;
  scanf("%d", &n);
  int *arr = (int *)malloc(n * sizeof(int));
  for (i = 0; i < n; i++) {
    scanf("%d", &arr[i]);
    sum = sum + arr[i];
  }
  for (i = 0; i < n - 1; i++) {
    temp = arr[i] + temp;
    if (sum - temp == temp) count++;
  }
  printf("%d\n", count);
  return 0;
}
