#include <bits/stdc++.h>
using namespace std;
using vint = vector<int>;
using vdouble = vector<double>;
using vstring = vector<string>;
using ll = long long;
template <class T>
void chmin(T& a, const T& b) {
  a = min(a, b);
}
template <class T>
void chmax(T& a, const T& b) {
  a = max(a, b);
}
int main() {
  int n;
  cin >> n;
  vint a(n);
  for (int i = (0); i < (n); ++i) cin >> a[i];
  vint cnt(10, 0);
  for (int i = (0); i < (n); ++i) {
    for (int j = (0); j < (10); ++j) {
      if (a[i] < 400 * (j + 1)) {
        cnt[j]++;
        break;
      }
    }
  }
  int cnt2 = 0;
  for (int i = (0); i < (8); ++i) {
    if (cnt[i] > 0) cnt2++;
  }
  cout << cnt2 << " " << (cnt2 + cnt[8]) << endl;
  return 0;
}
