#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  vector<int> a(n);
  for (int i = 0; i < n; i++) {
    cin >> a[i];
  }
  sort(a.begin(), a.end());
  int b[9] = {};
  int id;
  for (int i = 0; i < n; i++) {
    id = min(a[i] / 400, 8);
    b[id] += 1;
  }
  int ans = 0;
  for (int i = 0; i < 9; i++) {
    if (b[i] > 0) {
      ans += 1;
    }
  }
  if (b[8] == 0) {
    cout << ans << " " << ans << endl;
    return 0;
  }
  bool flag = true;
  for (int i = 0; i < 8; i++) {
    if (b[i] > 0) {
      flag = false;
    }
  }
  if (flag) {
    cout << 1 << " " << min(8, b[8]) << endl;
  } else {
    cout << ans - 1 << " " << min(8, ans - 1 + b[8]) << endl;
  }
  return 0;
}
