#include <bits/stdc++.h>
using namespace std;
long long int arr[(long long int)1e5 + 5] = {},
                                       arr2[(long long int)1e5 + 5] = {}, n,
                                       sum = 0, w = 0;
int main() {
  ios_base::sync_with_stdio(0);
  ios::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  ;
  cin >> n;
  for (int i = 0; i < n; ++i) {
    cin >> arr[i];
    sum += arr[i], arr2[i] = sum;
  }
  for (int z = 0; z < n - 1; ++z)
    if (arr2[z] == sum - arr2[z]) w++;
  cout << w << "\n";
  return 0;
}
