#include <bits/stdc++.h>
#pragma GCC optimize("O3")
#pragma GCC optimize("Ofast")
using namespace std;
long long int n, a[100005], second = 0, s1 = 0;
int32_t main() {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  ;
  cin >> n;
  for (long long int i = 0; i < n; i++) {
    cin >> a[i];
    second = second + a[i];
  }
  long long int ans = 0;
  for (long long int i = 0; i < n - 1; i++) {
    s1 = s1 + a[i];
    if (s1 == second - s1) {
      ans++;
    }
  }
  cout << ans << '\n';
}
