#include <bits/stdc++.h>
int main(void) {
  std::int64_t N;
  std::cin >> N;
  std::int64_t a[N];
  std::int64_t c[16] = {0};
  for (auto i = decltype(N)(1); i <= N; i++) {
    std::cin >> a[i];
  }
  std::int8_t big = 0;
  for (auto i = decltype(N)(1); i <= N; i++) {
    std::uint8_t c_ = a[i] / 400;
    c[c_] = 1;
    if (c_ >= 8) {
      big++;
    }
  }
  std::int32_t min_ = 0;
  for (auto i = 0; i <= 7; i++) {
    min_ += c[i];
  }
  std::int32_t max_ = min_ + big;
  std::cout << min_ << " " << max_ << std::endl;
  return 0;
}
