#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  int a[n];
  for (int i = 0; i < n; i++) {
    cin >> a[i];
  }
  int cro[9];
  for (int i = 0; i < 9; i++) {
    cro[i] = 0;
  }
  int k = 0;
  for (int i = 0; i < n; i++) {
    k = a[i] / 400;
    if (k >= 8) {
      cro[8] += 1;
    } else {
      cro[k] = 1;
    }
  }
  int min = 0;
  int max = 0;
  for (int i = 0; i < 8; i++) {
    if (cro[i] == 1) {
      min++;
      max++;
    }
  }
  if (cro[8] == 0) {
    cout << min << " " << max << endl;
  } else {
    max += cro[8];
    if (max >= 8) {
      max = 8;
    }
    if (min == 0) {
      cout << 1 << " " << max << endl;
    } else {
      cout << min << " " << max << endl;
    }
  }
}
