#include <bits/stdc++.h>
#pragma warning(disable : 4996)
using namespace std;
int pickColor(int rating) {
  if (rating < 3200)
    return rating / 400;
  else
    return -1;
}
int main() {
  int N, rating;
  int color[8];
  while (cin >> N) {
    memset(color, 0, sizeof(color));
    int any = 0;
    for (int i = 0; i < N; ++i) {
      cin >> rating;
      int idx = pickColor(rating);
      if (idx != -1)
        ++color[idx];
      else
        ++any;
    }
    int kind = 0;
    for (int c = 0; c < 8; ++c) {
      kind += (color[c] > 0) ? 1 : 0;
    }
    int res_min = (kind == 0) ? 1 : kind;
    int res_max = (kind + any > 8) ? 8 : kind + any;
    cout << res_min << " " << res_max << endl;
  }
  return 0;
}
