#include <bits/stdc++.h>
using namespace std;
int main(int argc, char *argv[]) {
  int n;
  cin >> n;
  int count[9] = {0};
  for (; n-- > 0;) {
    int i;
    cin >> i;
    i /= 400;
    if (i > 8) i = 8;
    count[i]++;
  }
  int v = 0;
  for (int i = 0; i < 8; ++i) {
    if (count[i] > 0) v++;
  }
  int mn, mx;
  if (v == 0) {
    mn = mx = 1;
  } else if (v == 8) {
    mn = mx = 8;
  } else {
    mn = v;
    mx = v + count[8];
    mx = min(mx, 8);
  }
  cout << mn << " " << mx << endl;
  return 0;
}
