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