#include <bits/stdc++.h>
using namespace std;
void ABC064C() {
  int N;
  cin >> N;
  vector<int> val(N);
  for (auto& x : val) cin >> x;
  sort(val.begin(), val.end());
  vector<int> ct(10);
  for (int i = 0; i < N; ++i) {
    if (val[i] < 3200) {
      int x = val[i] / 400 + 1;
      ++ct[x];
    } else
      ++ct[9];
  }
  int minCt = 0;
  for (int i = 1; i < 9; ++i) {
    minCt += ct[i] > 0 ? 1 : 0;
  }
  int maxCt = minCt + ct.back();
  cout << minCt << ' ' << maxCt << endl;
}
int main() {
  ABC064C();
  return 0;
}
