#include <bits/stdc++.h>
using namespace std;
int main() {
  int a;
  std::cin >> a;
  bool lower3200s[8] = {};
  int lower3200 = 0;
  int upper3200 = 0;
  while (std::cin >> a) {
    int i = std::min(a / 400, 8);
    if (i < 8) {
      if (!lower3200s[i]) {
        lower3200s[i] = true;
        lower3200++;
      }
    } else {
      upper3200++;
    }
  }
  std::cout << std::max(lower3200, 1) << " "
            << std::min(lower3200 + upper3200, 8) << std::endl;
  return 0;
}
