#include <bits/stdc++.h>
using namespace std;
const int L = 100010;
int arr[L];
int main() {
  int i, j, k, n;
  scanf("%d", &n);
  scanf("%d", &arr[0]);
  for (int i = 1; i <= n - 1; i++) {
    scanf("%d", &j);
    arr[i] = j + arr[i - 1];
  }
  int ans = 0;
  for (int i = 1; i <= n - 1; i++) {
    if (arr[i - 1] == arr[n - 1] - arr[i - 1]) ans++;
  }
  printf("%d\n", ans);
  return 0;
}
