#include <bits/stdc++.h>
using namespace std;
int main() {
  int colors_count[9] = {0, 0, 0, 0, 0, 0, 0, 0, 0}, n;
  cin >> n;
  int input;
  for (int i = 0; i < n; i++) {
    cin >> input;
    if (input < 3200) {
      for (int j = 0; j < 8; j++) {
        if (j * 400 <= input && input < (j + 1) * 400) {
          colors_count[j]++;
        }
      }
    } else {
      colors_count[8]++;
    }
  }
  int max_type = 0, min_type = 0;
  for (int i = 0; i < 8; i++) {
    if (colors_count[i]) {
      min_type += 1;
    }
  }
  max_type = min_type;
  if (min_type == 0 && colors_count[8]) {
    min_type = 1;
  }
  if ((8 - min_type) > 0 && colors_count[8] < (8 - min_type)) {
    max_type += colors_count[8];
  } else {
    max_type = 8;
  }
  cout << min_type << " " << max_type << endl;
}
