#include <bits/stdc++.h>
using namespace std;
int arr[100000 + 10];
int arr2[100000 + 10];
int arr3[100000 + 10];
int main() {
  int n, sum = 0, x, res = 0;
  cin >> n;
  for (int i = 0; i < n; i++) cin >> arr[i];
  for (int i = 0; i < n - 1; i++) {
    sum += arr[i];
    arr2[i] = sum;
  }
  sum = 0;
  for (int i = n - 1; i > 0; i--) {
    sum += arr[i];
    arr3[i] = sum;
  }
  for (int i = 0, j = 1; i < n - 1; i++, j++) {
    if (arr2[i] == arr3[j]) res++;
  }
  cout << res;
  return 0;
}
