#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  int c = 0;
  int k = 0;
  bool ra[8];
  cin >> n;
  for (int i = 0; i < n; i++) {
    int s;
    cin >> s;
    int r = s / 400;
    if (r >= 8) {
      k++;
    } else {
      if (!ra[r]) {
        ra[r] = true;
        c++;
      }
    }
  }
  cout << k << ' ' << min(8, c + k);
  return 0;
}
