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