#include <bits/stdc++.h>
using namespace std;
int main() {
  int N;
  cin >> N;
  vector<int> a;
  vector<int> cnt(15, 0);
  for (int i = 0; i < N; i++) {
    int tmp;
    cin >> tmp;
    a.push_back(tmp);
    cnt.at(a.at(i) / 400)++;
  }
  int min = 0, max;
  for (int i = 0; i < 8; i++) {
    if (cnt.at(i)) min++;
  }
  max = min;
  for (int i = 8; i < 15; i++) {
    if (cnt.at(i)) max += cnt.at(i);
  }
  cout << min << " " << max << endl;
  return 0;
}
