#include <bits/stdc++.h>
using namespace std;
int main() {
  long long int n, i, l = 0, r = 0, ans = 0;
  cin >> n;
  long long int a[n];
  for (i = 0; i < n; i++) {
    cin >> a[i];
    r = r + a[i];
  }
  for (i = 0; i < n - 1; i++) {
    l = l + a[i];
    r = r - a[i];
    if (l == r) ans++;
  }
  cout << ans << endl;
  return 0;
}
