#include <bits/stdc++.h>
using namespace std;
using ll = long long;
using ld = long double;
constexpr int INF = 2000000100;
constexpr ll DIV = 1000000007;
template <class T>
bool chmax(T& a, T b) {
  if (a < b) {
    a = b;
    return true;
  }
  return false;
}
template <class T>
bool chmin(T& a, T b) {
  if (a > b) {
    a = b;
    return true;
  }
  return false;
}
std::string strMulti(std::string t, int n) {
  std::string out = "";
  for (int i = 0; i < n; i++) {
    out += t;
  }
  return out;
}
ll N;
vector<ll> a, c;
void Main() {
  cin >> N;
  a.resize(N);
  for (ll i = 0, i_len = (N); i < i_len; ++i) cin >> a[i];
  c.resize(9);
  for (ll i = 0, i_len = (N); i < i_len; ++i) {
    if (a[i] < 3200) {
      c[a[i] / 400]++;
    } else {
      c[8]++;
    }
  }
  int min = 0, max = 0;
  int cons = 0;
  for (ll i = 0, i_len = (8); i < i_len; ++i) {
    if (c[i] > 0) cons++;
  }
  if (cons == 0)
    min = 1;
  else
    min = cons;
  cons += c[8];
  if (cons > 8) cons = 8;
  max = cons;
  cout << min << " " << max;
}
int main() {
  std::cout << std::fixed << std::setprecision(10);
  Main();
  return 0;
}
