#include <bits/stdc++.h>
using namespace std;
int main() {
  cin.tie(0);
  ios::sync_with_stdio(false);
  int n;
  cin >> n;
  vector<int> vec(n);
  set<int> s;
  int over3200 = 0;
  for (int i = 0; i < n; ++i) {
    cin >> vec[i];
    int unko = vec[i] / 400;
    if (unko >= 8) {
      s.insert(8);
    } else {
      s.insert(vec[i] / 400);
    }
    if (vec[i] >= 3200) over3200++;
  }
  if (over3200 == 0) {
    cout << s.size() << ' ' << s.size() << endl;
  } else {
    if (s.size() == 1) {
      cout << s.size() << ' ';
    } else {
      cout << s.size() - 1 << ' ';
    }
    int tmp = s.size() + over3200 - 1;
    if (tmp > 8) {
      cout << 8 << endl;
    } else {
      cout << tmp << endl;
    }
  }
  return 0;
}
