#include <bits/stdc++.h>
using namespace std;
int cho[100010], t_Alice[100010], t_Bob[100010];
int main() {
  int n, res_Alice = 0, res_Bob = 0;
  cin >> n;
  for (int i = 1; i <= n; i++) {
    cin >> cho[i];
    t_Alice[i] = t_Alice[i - 1] + cho[i];
  }
  for (int i = n; i > 0; i--) {
    t_Bob[i] = t_Bob[i + 1] + cho[i];
  }
  for (int i = 1; i <= n; i++) {
    if (t_Alice[i] <= t_Bob[i])
      res_Alice++;
    else
      res_Bob++;
  }
  cout << res_Alice << " " << res_Bob;
}
