#include <bits/stdc++.h>
inline int rating(int rank) {
  int result = -1;
  if (rank >= 1 && rank <= 399)
    result = 0;
  else if (rank >= 400 && rank <= 799)
    result = 1;
  else if (rank >= 800 && rank <= 1199)
    result = 2;
  else if (rank >= 1200 && rank <= 1599)
    result = 3;
  else if (rank >= 1600 && rank <= 1999)
    result = 4;
  else if (rank >= 2000 && rank <= 2399)
    result = 5;
  else if (rank >= 2400 && rank <= 2799)
    result = 6;
  else if (rank >= 2800 && rank <= 3199)
    result = 7;
  return result;
}
int main() {
  std::ios_base::sync_with_stdio(false);
  std::cin.tie(0);
  std::cout.tie(0);
  int n = 0;
  std::cin >> n;
  std::set<int> d;
  bool all_rounder = false;
  while (n--) {
    int r = 0;
    std::cin >> r;
    const int rat = rating(r);
    if (rat == -1)
      all_rounder = true;
    else
      d.insert(rat);
  }
  if (all_rounder)
    std::cout << d.size() << " " << 8 - d.size() << std::endl;
  else
    std::cout << d.size() << " " << d.size() << std::endl;
  return 0;
}
