#include <bits/stdc++.h>
using namespace std;
int main() {
  int min = 0, max = 0;
  int n;
  cin >> n;
  bool color[9] = {false};
  int highrate = 0;
  for (int i = 0; i < (n); i++) {
    int rate;
    cin >> rate;
    color[rate / 400] = true;
    if (rate / 400 >= 8) {
      highrate++;
    }
  }
  for (int i = 0; i < (8); i++) {
    if (color[i] == true) {
      min++;
      max++;
    }
  }
  if (min < 8 && highrate > 0) {
    max += highrate;
  }
  if (max > 8) {
    max = 8;
  }
  cout << min << " " << max << endl;
  return 0;
}
