#include <bits/stdc++.h>
using namespace std;
long long a[100009];
int main() {
  long long n;
  long long sum1 = 0, sum2 = 0;
  scanf("%lld", &n);
  for (long long i = (long long)(1); i <= (long long)(n); ++i) {
    scanf("%lld", &a[i]);
    sum2 += a[i];
  }
  long long ans = 0;
  for (long long i = (long long)(1); i <= (long long)(n - 1); ++i) {
    sum1 += a[i];
    sum2 -= a[i];
    if (sum1 == sum2) ans++;
  }
  printf("%lld\n", ans);
  return 0;
}
