#include <bits/stdc++.h>
using namespace std;
int main() {
  int N;
  int over_rate = 0;
  vector<int> a;
  cin >> N;
  for (int i = 0; i < N; i++) {
    int rate;
    cin >> rate;
    if (3200 <= rate) {
      over_rate++;
    } else {
      a.push_back(rate / 400);
    }
  }
  sort(a.begin(), a.end());
  a.erase(unique(a.begin(), a.end()), a.end());
  int min = a.size();
  int max = (int)a.size() + over_rate;
  if (8 - a.size() <= over_rate) {
    max = 8;
  }
  cout << min << " " << max << endl;
  return 0;
}
