#include <bits/stdc++.h>
bool colored[8];
int main() {
  int n;
  std::cin >> n;
  int color = 0;
  int pro = 0;
  for (int i = 0; i < n; ++i) {
    int a;
    std::cin >> a;
    if (a < 3200) {
      if (colored[a / 400]) continue;
      colored[a / 400] = true;
      ++color;
    } else
      ++pro;
  }
  std::cout << std::max(color, pro) << " " << std::min(color + pro, 9)
            << std::endl;
}
