#include <bits/stdc++.h>
using namespace std;
int N;
int main() {
  int N;
  std::set<int> s;
  cin >> N;
  int buf;
  int countOver3200 = 0;
  for (int i = 0; i < N; i++) {
    cin >> buf;
    if (buf > 3200) buf = 3200;
    buf /= 400;
    s.insert(buf);
    if (buf == 8) {
      countOver3200++;
    }
  }
  int min, max;
  if ((s.size() - (countOver3200 > 0)) == 0) {
    min = 1;
  } else {
    min = s.size() - (countOver3200 > 0);
  }
  if (s.size() + countOver3200 - (countOver3200 > 0) > 8) {
    max = 8;
  } else {
    max = s.size() + countOver3200 - (countOver3200 > 0);
  }
  cout << min << " " << max << endl;
}
