#include <bits/stdc++.h>
using namespace std;
bool compPair(const pair<int, int>& arg1, const pair<int, int>& arg2) {
  return arg1.first > arg2.first;
}
template <class T>
void chmax(T& a, T b) {
  if (a < b) {
    a = b;
  }
}
template <class T>
void chmin(T& a, T b) {
  if (a > b) {
    a = b;
  }
}
int main(void) {
  int n;
  cin >> n;
  vector<bool> col(8, false);
  int a, w = 0;
  for (int in = 0; in < n; in++) {
    cin >> a;
    if (a <= 399)
      col.at(0) = true;
    else if (a <= 799)
      col.at(1) = true;
    else if (a <= 1199)
      col.at(2) = true;
    else if (a <= 1599)
      col.at(3) = true;
    else if (a <= 1999)
      col.at(4) = true;
    else if (a <= 2399)
      col.at(5) = true;
    else if (a <= 2799)
      col.at(6) = true;
    else if (a <= 3199)
      col.at(7) = true;
    else
      w++;
  }
  int sum = 0;
  for (int in = 0; in < 8; in++) {
    if (col.at(in) == true) sum++;
  }
  cout << sum << " " << min(sum + w, 8) << endl;
  return 0;
}
