#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  int yj_rainbow = 0;
  int c = 0;
  bool yj[8] = {false};
  int miny, maxy;
  cin >> n;
  vector<int> a(n);
  for (int i = 0; i < n; i++) {
    cin >> a[i];
    if (a[i] < 3200)
      yj[a[i] / 400] = true;
    else
      yj_rainbow++;
  }
  for (int i = 0; i < 8; i++)
    if (yj[i] == true) c++;
  if (yj_rainbow == 0) {
    miny = c;
    maxy = c;
  } else if (c == 0) {
    miny = 1;
    if (yj_rainbow < 8)
      maxy = yj_rainbow;
    else
      maxy = 8;
  } else if (yj_rainbow + c >= 8) {
    miny = c;
    maxy = 8;
  } else {
    miny = c;
    maxy = yj_rainbow + c;
  }
  cout << miny << " " << maxy << endl;
  return 0;
}
