#include <bits/stdc++.h>
using namespace std;
inline int toInt(string s) {
  int v;
  istringstream sin(s);
  sin >> v;
  return v;
}
template <class T>
inline string toString(T x) {
  ostringstream sout;
  sout << x;
  return sout.str();
}
template <class T>
inline T sqr(T x) {
  return x * x;
}
const double EPS = 1e-10;
const double PI = acos(-1.0);
const int INF = (int)1000000007;
const long long MOD = (long long)1000000007;
const long long INF2 = (long long)100000000000000000;
int tb[8];
int main() {
  int n;
  cin >> n;
  int kanmuri = 0;
  for (int i = 0; i < n; i++) {
    int x;
    cin >> x;
    if (x > 3200) {
      kanmuri++;
    } else {
      tb[x / 400]++;
    }
  }
  int bonzin = 0;
  for (int i = 0; i < 8; i++) {
    if (tb[i] != 0) {
      bonzin++;
    }
  }
  if (bonzin > 0) {
    cout << bonzin << " " << bonzin + kanmuri << endl;
  } else {
    cout << 1 << " " << kanmuri << endl;
  }
  return 0;
}
