#include <bits/stdc++.h>
using namespace std;
int main() {
  cin.tie(0);
  ios::sync_with_stdio(false);
  int N;
  cin >> N;
  vector<int> rates(8, 0);
  int numCrowns = 0;
  for (int i = 0; i < N; ++i) {
    int rate;
    cin >> rate;
    if (rate < 3200)
      ++rates[rate / 400];
    else
      ++numCrowns;
  }
  int resMin, resMax;
  resMin = 8 - count(rates.begin(), rates.end(), 0);
  resMax = resMin + numCrowns;
  cout << resMin << " " << resMax << "\n";
}
