#include <bits/stdc++.h>
using namespace std;
int main() {
  int N, cont = 0, max = 0, min = 0, ex = 0;
  int a[200];
  cin >> N;
  for (int t = 0; t < N; t++) cin >> a[t];
  bool co[30];
  fill(co, co + 30, false);
  for (int t = 0; t < N; t++) {
    if ((a[t] / 400) >= 8) {
      ex++;
      continue;
    }
    co[(a[t] / 400)] = true;
  }
  for (int t = 0; t <= 7; t++) {
    if (co[t]) cont++;
  }
  min = cont;
  max = cont + ex;
  cout << min << " " << max << "\n";
  return 0;
}
