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