#include <bits/stdc++.h>
using namespace std;
const int kFree = 8;
int main() {
  int n;
  cin >> n;
  int count[kFree + 1]{};
  for (int i = 0; i < n; ++i) {
    int p;
    cin >> p;
    if (p >= 3200) {
      ++count[kFree];
    } else {
      count[p / 400] = 1;
    }
  }
  int min_colors = accumulate(count, count + kFree, 0);
  if (min_colors == 0) min_colors = 1;
  int max_colors = accumulate(count, count + kFree + 1, 0);
  if (max_colors > 8) max_colors = 8;
  cout << min_colors << " " << max_colors << "\n";
  return 0;
}
