#include <bits/stdc++.h>
using namespace std;
;
const double eps = 1e-8;
const int mod = 1000000007;
const int maxn = 2e5 + 7;
const double pi = acos(-1);
const int inf = 0x3f3f3f3f;
const long long INF = 0x3f3f3f3f3f3f3f3fLL;
int n, sum;
int a[maxn];
int main() {
  scanf("%d", &n);
  for (int i = 1; i <= n; ++i) scanf("%d", &a[i]), sum += a[i];
  int ans = 0, cnt = 0;
  for (int i = 1; i < n; ++i) {
    cnt += a[i];
    if (cnt == sum - cnt) {
      ans++;
    }
  }
  printf("%d\n", ans);
  return 0;
}
