#include <bits/stdc++.h>
using namespace std;
int main() {
  int N;
  cin >> N;
  auto over = 0;
  set<int> s;
  for (auto i = 0; i < N; ++i) {
    int a;
    cin >> a;
    auto temp = a / 400;
    if (temp >= 8) {
      ++over;
    } else {
      s.insert(temp);
    }
  }
  cout << s.size() << " " << s.size() + over << endl;
  return 0;
}
