#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, a, r[9] = {0}, flag = 1, idx, sumv = 0, minv;
  cin >> n;
  for (int i = 0; i < n; i++) {
    cin >> a;
    idx = a / 400;
    if (idx < 8) {
      r[idx] = 1;
      flag = 0;
    } else {
      r[idx]++;
    }
  }
  for (int i = 0; i < 9; i++) sumv += r[i];
  if (flag)
    minv = 1;
  else
    minv = sumv - r[8];
  cout << minv << ' ' << sumv << endl;
  return 0;
}
