#include <bits/stdc++.h>
using namespace std;
long long t, o;
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  long long n, cnt = 0;
  cin >> n;
  long long a[n], dp[n], sum = 0;
  for (int i = 0; i < n; i++) {
    cin >> a[i];
    sum += a[i];
    dp[i] = sum;
  }
  for (int i = 0; i < n - 1; i++) {
    if (dp[i] == dp[n - 1] - dp[i]) cnt++;
  }
  cout << cnt << endl;
  return 0;
}
