#include <bits/stdc++.h>
using namespace std;
const double pi = 3.14159265358979323846;
void cp() {}
void solve() {
  long long n, x;
  cin >> n;
  long long a[n], sum[n];
  for (int i = 0; i < n; i++) {
    cin >> a[i];
    sum[i] = a[i];
    if (i > 0) sum[i] += sum[i - 1];
  }
  long long count = 0;
  for (int i = 0; i < n - 1; i++) {
    if (sum[i] == sum[n - 1] - sum[i]) count++;
  }
  cout << count;
}
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(NULL);
  long long t = 1;
  while (t--) solve();
  return 0;
}
