#include <bits/stdc++.h>
using namespace std;
int which_color(int rate) {
  if (1 <= rate && rate <= 399) return 0;
  if (400 <= rate && rate <= 799) return 1;
  if (800 <= rate && rate <= 1199) return 2;
  if (1200 <= rate && rate <= 1599) return 3;
  if (1600 <= rate && rate <= 1999) return 4;
  if (2000 <= rate && rate <= 2399) return 5;
  if (2400 <= rate && rate <= 2799) return 6;
  if (2800 <= rate && rate <= 3199) return 7;
  return 8;
}
int main() {
  int N;
  int num_colors = 9;
  int colors[9] = {};
  vector<int> a;
  cin >> N;
  int tmp = 0;
  for (int i = 0; i < N; i++) {
    cin >> tmp;
    colors[which_color(tmp)]++;
  }
  int min_colors = 0, max_colors = 0;
  for (int i = 0; i < num_colors - 1; i++)
    if (colors[i] != 0) min_colors++;
  if (min_colors == 0 && colors[num_colors - 1] != 0) {
    min_colors += 1;
    max_colors = colors[num_colors - 1];
    return 0;
  } else {
    max_colors = min_colors + colors[num_colors - 1];
  }
  if (max_colors > 8) max_colors = 8;
  cout << min_colors << " " << max_colors << endl;
}
