#include <bits/stdc++.h>
int main() {
  int n;
  std::cin >> n;
  const int gray = 0;
  const int god = 8;
  const int rateCount = 9;
  std::vector<int> rates(rateCount);
  for (int i = 0; i < n; ++i) {
    int a;
    std::cin >> a;
    ++rates[a / 400];
  }
  int humansColorNum = 0;
  for (int i = gray; i < god; ++i) {
    if (rates[i] > 0) {
      ++humansColorNum;
    }
  }
  std::cout << std::max(humansColorNum, rates[god]) << " "
            << humansColorNum + rates[god] << std::endl;
  return 0;
}
