#include <bits/stdc++.h>
using namespace std;
int32_t main() {
  long long n;
  cin >> n;
  long long arr[n];
  long long sumsec = 0, sumfirst = 0;
  for (long long i = 0; i < n; i++) {
    cin >> arr[i];
    sumsec += arr[i];
  }
  long long cnt = 0;
  for (long long i = 1; i < n; i++) {
    sumfirst += arr[i - 1];
    sumsec -= arr[i - 1];
    if (sumfirst == sumsec) cnt++;
  }
  cout << cnt << endl;
  return 0;
}
