#include <bits/stdc++.h>
using namespace std;
int main() {
  int N, a;
  cin >> N;
  vector<int> vec(8);
  int total = 0;
  int special = 0;
  for (int i = 0; i < N; i++) {
    cin >> a;
    for (int j = 0; j < 8; j++) {
      if (400 * j <= a && a < 400 * (j + 1)) {
        vec.at(j)++;
      } else if (3200 <= a) {
        special++;
        break;
      }
    }
  }
  for (int k = 0; k < 8; k++) {
    if (vec.at(k) > 0) {
      total++;
    }
  }
  if (special == 0) {
    cout << total << " " << total << endl;
  } else {
    if (total == 0 && special <= 8) {
      cout << 1 << " " << special << endl;
    } else if (total == 0 && special > 8) {
      cout << 1 << " " << 8 << endl;
    } else if (total + special <= 8) {
      cout << total << " " << total + special << endl;
    } else if (total + special > 8) {
      cout << total << " " << 8 << endl;
    }
  }
}
