#include <bits/stdc++.h>
using namespace std;
int n;
int main() {
  cin >> n;
  vector<int> color(9, 0);
  for (int i = 0; i < n; ++i) {
    int a;
    cin >> a;
    int no = a / 400;
    if (no >= 8) {
      color.at(8)++;
    } else {
      color.at(no)++;
    }
  }
  int cnt = 0;
  for (int i = 0; i < 8; ++i) {
    if (color.at(i) != 0) cnt++;
  }
  int mcnt = 0;
  if (cnt + color.at(8) >= 8) {
    mcnt = 8;
  } else {
    mcnt = cnt + color.at(8);
  }
  cout << cnt << " " << mcnt << endl;
}
