#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, a[100] = {}, b[13] = {}, m = 0, M = 0;
  cin >> n;
  for (int i = 0; i < n; i++) {
    cin >> a[i];
    b[a[i] / 400]++;
  }
  for (int i = 0; i < 13; i++) {
    if (i < 8 && b[i] > 0) {
      m++;
      M++;
    }
    if (i >= 8) {
      M += b[i];
    }
  }
  cout << m << " " << M << endl;
}
