#include <bits/stdc++.h>
using namespace std;
int n, arr[100000], acc[2][100000], res;
int main() {
  scanf("%d", &n);
  for (int i = 0; i < n; i++) scanf("%d", &arr[i]);
  for (int i = 0; i < n; i++)
    acc[0][i] = arr[i] + (i ? acc[0][i - 1] : 0),
    acc[1][n - i - 1] = arr[n - i - 1] + (i ? acc[1][n - i] : 0);
  for (int i = 0, s1, s2; i < n - 1; i++) res += acc[0][i] == acc[1][i + 1];
  cout << res;
}
