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