#include <bits/stdc++.h>
using namespace std;
int main(void) {
  int n;
  int i;
  int score;
  int map[100] = {};
  int p = 0;
  cin >> n;
  for (i = 0; i < n; i++) {
    cin >> score;
    if (score < 3200) {
      map[score / 400] = 1;
    } else {
      p++;
    }
  }
  int c = 0;
  for (i = 0; i < 8; i++) {
    c += map[i];
  }
  int cmax = c;
  int cmin = c;
  cmax = cmax + p;
  if (cmax > 8) cmax = 8;
  if (cmin == 0) cmin = 1;
  if (cmax == 0) cmax = 1;
  cout << cmin << " " << cmax << endl;
  return 0;
}
