#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, mi = 0, ma = 0, ans = 0;
  cin >> n;
  vector<int> a(9);
  vector<int> b(10000000);
  for (int i = 0; i < n; i++) {
    cin >> b[i];
    if (b[i] < 3200) {
      a[b[i] / 400]++;
    } else {
      a[8]++;
    }
  }
  for (int i = 0; i < 8; i++) {
    if (a[i] > 0) {
      mi++;
    }
  }
  ma = mi;
  if (mi == 0) {
    mi++;
  }
  ma += a[8];
  ans = min(ma, 8);
  cout << mi << " " << ans << endl;
  return 0;
}
