#include <bits/stdc++.h>
int n, s1, s2, ans;
int a[100005];
int main() {
  scanf("%d", &n);
  for (int i = 0; i < n; i++) {
    scanf("%d", &a[i]);
    s1 += a[i];
  }
  for (int i = 0; i < n - 1; i++) {
    s1 -= a[i];
    s2 += a[i];
    ans += (s1 == s2);
  }
  printf("%d\n", ans);
  return 0;
}
