#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... A>
inline void dump() {
  cout << endl;
}
template <class... A>
inline void dump_rest() {
  cout << endl;
}
template <class T, class... A>
inline void dump_rest(const T& first, const A&... rest) {
  cout << ' ' << first;
  dump_rest(rest...);
}
template <class T, class... A>
inline void dump(const T& first, const A&... rest) {
  cout << first;
  dump_rest(rest...);
}
template <class... A>
inline void debug() {
  cout << endl;
}
template <class... A>
inline void debug_rest() {
  cout << endl;
}
template <class T, class... A>
inline void debug_rest(const T& first, const A&... rest) {
  cout << ',' << first;
  debug_rest(rest...);
}
template <class T, class... A>
inline void debug(const T& first, const A&... rest) {
  if (1) cout << first, debug_rest(rest...);
}
inline long long digitsum(long long v) {
  long long d = 0;
  while (v) {
    d += v % 10;
    v /= 10;
  }
  return d;
};
int m, n, ans, fre, lis[8], dif;
int main() {
  cin >> n;
  for (int i = 0; i < n; i++) {
    int dis;
    cin >> dis;
    if (dis >= 3200) {
      fre++;
    } else {
      dif++;
      lis[dis / 400]++;
    }
  }
  if (fre != 0 && dif == 0) {
    if (fre > 8) fre = 8;
    cout << 1 << ' ' << fre << endl;
  } else {
    for (int i = 0; i < 8; i++) {
      if (lis[i]) m++;
    }
    if (m + fre > 8)
      cout << m << ' ' << 8 << endl;
    else
      cout << m << ' ' << m + fre << endl;
  }
  system("pause");
}
