#include <bits/stdc++.h>
using namespace std;
int n;
int a[100000 + 10], b[100000 + 10], c[100000 + 10];
int i;
int Alice, Bob;
int main() {
  cin >> n;
  for (i = 0; i < n; i++) {
    cin >> a[i];
  }
  b[0] = a[0];
  for (i = 1; i < n; i++) {
    b[i] = b[i - 1] + a[i];
  }
  c[n - 1] = a[n - 1];
  for (i = n - 2; i >= 0; i--) {
    c[i] = c[i + 1] + a[i];
  }
  for (i = 0; i < n; i++) {
    if (b[i] <= c[i])
      Alice++;
    else
      Bob++;
  }
  cout << Alice << " " << Bob << endl;
}
