#include <bits/stdc++.h>
using namespace std;
int dy[] = {0, 0, 1, -1, 0};
int dx[] = {1, -1, 0, 0, 0};
int main() {
  int n, a[105] = {}, cnt = 1, b = 0, cmin = 0, cmax = 0;
  bool flag = false;
  cin >> n;
  for (int i = 0; i < n; i++) {
    cin >> a[i];
    a[i] /= 400;
    if (a[i] >= 8) {
    }
  }
  for (int i = 1; i < n; i++) {
    if (a[i - 1] != a[i]) cnt++;
    if (a[i] >= 8) {
      b++;
      flag = true;
    }
  }
  if (flag) {
    cmin = --cnt;
    cmax = cmin + b;
    cout << cmin << " " << cmax << endl;
  } else {
    cmin = cnt;
    cmax = cnt;
    cout << cmin << " " << cmax << endl;
  }
}
