#include <bits/stdc++.h>
using namespace std;
const int MN = 1000 * 100 + 100;
int arr[MN], n, s_l, s_r;
int main() {
  cin >> n;
  for (int i = 0; i < n; i++) {
    cin >> arr[i];
    s_r += arr[i];
  }
  s_r -= arr[0];
  s_l = arr[0];
  int cnt = 0;
  for (int i = 1; i < n; i++) {
    if (s_l == s_r) cnt++;
    s_r -= arr[i];
    s_l += arr[i];
  }
  cout << cnt;
  return 0;
}
