#include <bits/stdc++.h>
using namespace std;
const int INF = 0x7f7f7f7f;
const long long int INFL = 0x7f7f7f7f7f7f7f7f;
const int MAXN = 1005;
int main() {
  int n, total = 0;
  scanf("%d", &n);
  int arr[n];
  scanf("%d", arr);
  for (int i = 1; i < n; i++) {
    scanf("%d", arr + i);
    arr[i] += arr[i - 1];
  }
  total = arr[n - 1];
  if (total % 2) {
    cout << "0" << endl;
  } else {
    int t = 0;
    for (int i = 0; i < n - 1; i++) {
      if (arr[i] == total / 2) {
        t++;
      }
    }
    cout << t << endl;
  }
}
