#include <bits/stdc++.h>
using namespace std;
int32_t main() {
  ios::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  ;
  long long n;
  cin >> n;
  long long arr[n];
  for (long long i = 0; i < n; i++) {
    cin >> arr[i];
  }
  long long sum1[n];
  long long sum2[n];
  sum1[0] = arr[0];
  sum2[n - 1] = arr[n - 1];
  for (long long i = 1; i < n; i++) {
    sum1[i] = sum1[i - 1] + arr[i];
    sum2[n - i - 1] = sum2[n - i] + arr[n - i - 1];
  }
  long long sum = 0;
  for (long long i = 0; i < n - 1; i++) {
    if (sum1[i] == sum2[i + 1]) {
      sum++;
    }
  }
  cout << sum;
  cerr << "Time elapsed: " << 1000.0 * clock() / CLOCKS_PER_SEC << "ms\n";
  ;
  return 0;
}
