#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, a;
  cin >> n;
  vector<int> v(9), list = {399, 799, 1199, 1599, 1999, 2399, 2799, 3199, 4800};
  for (int i = 0; i < n; i++) {
    cin >> a;
    for (int j = 0; j < 9; j++) {
      if (a <= list[j]) {
        v[j]++;
        break;
      }
    }
  }
  int color = 0, mi, ma;
  for (int i = 0; i < 8; i++) {
    if (v[i] > 0) {
      color++;
    }
  }
  if (v[8] > color) {
    mi = min(8, v[8]);
    ma = min(8, color + v[8]);
  } else {
    mi = max(1, color);
    ma = min(8, color + v[8]);
  }
  cout << mi << " " << ma << endl;
  return 0;
}
