#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, over3200 = 0;
  cin >> n;
  vector<int> rate(8);
  int r;
  for (int i = 0; i < n; i++) {
    cin >> r;
    if (r >= 3200) {
      over3200++;
      continue;
    }
    rate[(int)(r / 400)]++;
  }
  int ret_min = 0;
  for (int i = 0; i < 8; i++) ret_min += (rate[i] > 0) ? 1 : 0;
  if (ret_min == 0) {
    ret_min = 1;
    over3200--;
  }
  int ret_max = min(ret_min + over3200, 8);
  cout << ret_min << " " << ret_max << endl;
  return 0;
}
