#include <bits/stdc++.h>

int main() {
  std::vector<int> c(9, 0);

  int n;
  std::cin >> n;

  for (int i = 0; i < n; i++) {
    int r;
    std::cin >> r;
    c[std::min(8, r / 400)]++;
  }

  int s = 0;
  for (int i = 0; i < 8; i++) {
    if (c[i] != 0) {
      s++;
    }
  }

  std::cout << std::max(1, s) << " " << s + c.back() << std::endl;
  return 0;
}