#include <bits/stdc++.h>
using namespace std;
int Rate(int rate) {
  rate = rate / 400;
  if (rate > 8) {
    return 8;
  }
  return rate;
}
int main(int argc, char const *argv[]) {
  int count, temp, color, over;
  color = over = 0;
  std::vector<int> v = {0, 1, 2, 3, 4, 5, 6, 7};
  std::cin >> count;
  for (size_t i = 0; i < count; i++) {
    std::cin >> temp;
    temp = Rate(temp);
    if (temp == 8) {
      over++;
    }
    for (size_t j = 0; j < v.size(); j++) {
      if (temp == v[j]) {
        color++;
        v.erase(v.begin() + j);
        break;
      }
    }
  }
  std::cout << color << " " << min(color + over, 8) << '\n';
  return 0;
}
