#include <bits/stdc++.h>
using namespace std;
int arr[100005];
map<int, int> mp;
void testCase() {
  int n;
  cin >> n;
  for (int i = 0; i < n; ++i) {
    cin >> arr[i + 1];
    arr[i + 1] += arr[i];
  }
  int ans = 0;
  for (int i = 1; i < n; i++) {
    if (arr[n] - arr[i] == arr[i]) ans++;
  }
  cout << ans;
}
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  testCase();
  return 0;
}
