#include <bits/stdc++.h>
using namespace std;
int min(int x, int y) { return x <= y ? x : y; }
int main() {
  int N;
  bool color_list[8] = {0};
  int rate;
  int god = 0;
  cin >> N;
  for (int i = 0; i < N; i++) {
    cin >> rate;
    if (rate >= 3200) {
      god++;
    } else {
      color_list[rate / 400] = true;
    }
  }
  int color_num = 0;
  for (int i = 0; i < 8; i++) {
    if (color_list[i]) {
      color_num++;
    }
  }
  int color_min, color_max;
  if (color_num == 0) {
    color_min = 1;
  } else {
    color_min = color_num;
  }
  color_max = min(8, color_num + god);
  cout << color_min << " " << color_max;
  return EXIT_SUCCESS;
}
