#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, fr = 0, total;
  vector<int> co(8, 0);
  scanf("%d", &n);
  for (int i = 0, j; i < n; ++i) {
    scanf("%d", &j);
    if (j < 3200) {
      co[j / 400] = 1;
    } else {
      ++fr;
    }
  }
  total = accumulate(co.begin(), co.end(), 0);
  printf("%d %d\n", max(1, total), min(8, total + fr));
}
