#include <bits/stdc++.h>
using namespace std;
void CINT() {}
template <class Head, class... Tail>
void CINT(Head&& head, Tail&&... tail) {
  cin >> head;
  CINT(move(tail)...);
}
const int INF = 1e9 + 1;
const int MOD = 1e9 + 7;
const int MAX_N = 1e5 + 1;
int cnt[9];
int main() {
  cin.tie(0);
  ios::sync_with_stdio(false);
  int N;
  CINT(N);
  vector<int> a(N);
  for (int i = (int)0; i < (int)N; ++i) {
    cin >> a[i];
    int tmp = min(a[i] / 400, 8);
    cnt[tmp]++;
  }
  int mn = 0;
  for (int i = (int)0; i < (int)8; ++i) {
    if (cnt[i] > 0) mn++;
  }
  int mx = mn;
  if (mn == 0) {
    mn = 1;
    mx = cnt[8];
  } else {
    mx = min(mn + cnt[8], 8);
  }
  cout << mn << " " << mx << endl;
  return 0;
}
