#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, ans = 0;
  scanf("%d", &n);
  int a[1000000];
  int sum[1000000];
  for (int i = 1; i <= n; i++) {
    cin >> a[i];
    sum[i] = a[i] + sum[i - 1];
  }
  for (int i = 1; i <= n - 1; i++) {
    if (sum[i] == sum[n] - sum[i]) ++ans;
  }
  cout << ans << endl;
  return 0;
}
