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