#include <bits/stdc++.h>
using namespace std;
int main(void) {
  int a, b[100], c, d[10], e, f, g, max, min;
  cin >> a;
  for (int i = 0; i < a; i++) {
    cin >> b[i];
    c = b[i] / 400;
    d[c]++;
  }
  for (int i = 0; i < 7; i++) {
    if (d[i] > 0) {
      e++;
    }
  }
  if (c >= 8) {
    f = e;
    g = e + d[8];
  }
  if (f < d[8]) {
    f = d[8];
  }
  if (g > 8) {
    g = 8;
  }
  cout << f << " " << g << endl;
}
