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