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