#include <bits/stdc++.h>
using namespace std;
int main(void) {
  int n;
  cin >> n;
  int grade[8] = {0};
  int rank, null_count = 0;
  int strong_human = 0;
  for (int i = 0; i < n; i++) {
    int box;
    cin >> box;
    rank = box / 400;
    if (rank > 7)
      strong_human++;
    else
      grade[rank] = 1;
  }
  for (int i = 0; i < 8; i++) {
    if (!grade[i]) null_count++;
  }
  cout << 8 - null_count << " "
       << 8 - null_count +
              (null_count < strong_human ? null_count : strong_human)
       << endl;
}
