#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, rating, temp = 0;
  cin >> n;
  set<int> color;
  for (int i = 0; i < n; i++) {
    cin >> rating;
    if (rating >= 3200) {
      temp++;
      continue;
    }
    color.insert(rating / 400);
  }
  cout << color.size() << " " << color.size() + temp << endl;
}
