#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, s1 = 0, s2 = 0, count = 0;
  cin >> n;
  int arr[n + 5];
  for (int i = 0; i < n; i++) {
    cin >> arr[i];
    s2 += arr[i];
  }
  for (int i = 0; i < n - 1; i++) {
    s1 += arr[i];
    s2 -= arr[i];
    if (s2 == s1) count++;
  }
  cout << count << "\n";
  return 0;
}
