#include <bits/stdc++.h>
using namespace std;
using vi = vector<int>;
using vvi = vector<vi>;
using vl = vector<long long>;
using vvl = vector<vl>;
int MOD = 1000000007;
template <class T>
inline bool chmax(T& a, T b) {
  if (a < b) {
    a = b;
    return 1;
  }
  return 0;
}
template <class T>
inline bool chmin(T& a, T b) {
  if (a > b) {
    a = b;
    return 1;
  }
  return 0;
}
const long long lINF = 1LL << 60;
const int iINF = 1 << 29;
int main(void) {
  int n;
  cin >> n;
  int a;
  int rainbow = 0;
  vi ok(8, 0);
  for (int i = 0; i < (int)(n); i++) {
    cin >> a;
    if (a >= 3200)
      rainbow++;
    else {
      ok[a / 400] = 1;
    }
  }
  cout << ((accumulate(ok.begin(), ok.end(), 0) == 0)
               ? 1
               : accumulate(ok.begin(), ok.end(), 0))
       << " " << min(accumulate(ok.begin(), ok.end(), 0) + rainbow, 8) << endl;
  return 0;
}
