#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, a, any;
  int colors[] = {0, 0, 0, 0, 0, 0, 0, 0};
  cin >> n;
  any = 0;
  while (n--) {
    cin >> a;
    if (a / 400 >= 8) {
      any++;
    } else {
      colors[a / 400]++;
    }
  }
  int min, max;
  min = 0;
  max = 0;
  min = 8 - count(&colors[0], &colors[7] + 1, 0);
  max = min + any;
  if (max > 8) max = 8;
  cout << min << " " << max;
  return 0;
}
