#include <bits/stdc++.h>
using namespace std;
template <class T>
bool chmax(T &a, const T &b) {
  if (a < b) {
    a = b;
    return true;
  }
  return false;
}
template <class T>
bool chmin(T &a, const T &b) {
  if (b < a) {
    a = b;
    return true;
  }
  return false;
}
const long long INF =
    sizeof(long long) == sizeof(long long) ? 0x3f3f3f3f3f3f3f3fLL : 0x3f3f3f3f;
const long long MOD = (long long)1e9 + 7;
const double EPS = 1e-9;
signed main() {
  cin.tie(0);
  ios::sync_with_stdio(false);
  long long N;
  set<long long> cols;
  long long rand = 0;
  cin >> N;
  long long A;
  for (long long i = (0), i_len = (N); i < i_len; i++) {
    cin >> A;
    if (A >= 3200) {
      rand++;
    } else {
      cols.insert(A / 400);
    }
  }
  cout << ((long long)(cols).size()) << " "
       << min(((long long)(cols).size()) + rand, 8LL) << endl;
  return 0;
}
