#include <bits/stdc++.h>
int main() {
  std::int_fast64_t n;
  std::cin >> n;
  std::vector<std::int_fast64_t> a(n);
  std::copy_n(std::istream_iterator<std::int_fast64_t>(std::cin), n, a.begin());
  std::unordered_set<std::int_fast64_t> colors;
  std::int_fast64_t crowned_count = 0;
  for (const std::int_fast64_t& a_i : a) {
    if (a_i < 3200) {
      colors.insert(a_i / 400);
    } else {
      ++crowned_count;
    }
  }
  std::cout << colors.size() << ' ' << colors.size() + crowned_count
            << std::endl;
  return 0;
}
