#include <bits/stdc++.h>
using namespace std;
template <typename T>
void DEBUG(T e) {
  std::cout << e << std::endl;
}
template <class T>
void DEBUG(string str, T e) {
  std::cout << str << ">>" << e << std::endl;
}
template <typename T>
void DEBUG(const std::vector<T>& v) {
  for (const auto& e : v) {
    std::cout << e << " ";
  }
  std::cout << std::endl;
}
template <typename T>
void DEBUG(const std::vector<std::vector<T> >& vv) {
  for (const auto& v : vv) {
    DEBUG(v);
  }
}
template <class T>
void corner(bool flg, T hoge) {
  if (flg) {
    cout << hoge << endl;
    exit(0);
  }
}
template <typename T1, typename T2>
inline bool chmax(T1& a, T2 b) {
  return a < b && (a = b, true);
}
template <typename T1, typename T2>
inline bool chmin(T1& a, T2 b) {
  return a > b && (a = b, true);
}
void solve(void) {
  long long N;
  cin >> N;
  long long M = 9;
  vector<long long> data(M);
  for (long long i = 0; i < N; i++) {
    long long A;
    cin >> A;
    A /= 400;
    if (A > 7)
      data[8]++;
    else {
      data[A]++;
    }
  }
  long long ANS = 0;
  for (long long i = 0; i < M - 1; i++) {
    if (data[i] > 0) ANS++;
  }
  if (data[8] > 0) {
    cout << ANS << " " << ANS + data[8] << endl;
  } else {
    cout << ANS << " " << ANS << endl;
  }
  return;
}
int32_t main(int32_t argc, const char* argv[]) {
  std::ios::sync_with_stdio(false);
  std::cin.tie(0);
  std::cout << std::fixed;
  std::cout << std::setprecision(9);
  solve();
  return 0;
}
