#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  int a[n];
  vector<int> c(9, 0);
  for (int i = 0; i < n; i++) {
    cin >> a[i];
    if (a[i] < 3200) {
      c[a[i] / 400]++;
    } else {
      c[8]++;
    }
  }
  int nul = 0;
  for (int i = 0; i < 8; i++) {
    if (c[i] == 0) nul++;
  }
  int min = 8 - nul;
  int max;
  if (nul <= c[8]) {
    max = 8;
  } else {
    max = min + c[8];
  }
  cout << min << ' ' << max << endl;
  return 0;
}
