#include <bits/stdc++.h>
using namespace std;
int main() {
  int N;
  int rate[9] = {0};
  int color = 0;
  cin >> N;
  for (int i = 0; i < N; i++) {
    int r;
    cin >> r;
    rate[r / 400]++;
  }
  for (int i = 0; i < 8; i++) {
    if (rate[i] != 0) color++;
  }
  int min, max;
  if (color != 0) {
    min = color;
    max = rate[8] + color;
    if (max > 8) max = 8;
  } else {
    min = 1;
    max = rate[8] > 8 ? 8 : rate[8];
  }
  cout << min << " " << max << endl;
}
