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