#include <bits/stdc++.h>
using namespace std;
int var[100005];
int main() {
  int n, m = 0;
  scanf("%d", &n);
  for (int i = 1; i <= n; ++i) {
    int x;
    scanf("%d", &x);
    x /= 400;
    if (x >= 8) {
      ++m;
    } else {
      ++var[x];
    }
  }
  int minVal = 0;
  for (int i = 0; i < 8; ++i) {
    if (var[i]) {
      ++minVal;
    }
  }
  int maxVal = minVal;
  if (minVal < m) {
    minVal += m - minVal;
    minVal = min(8, minVal);
  }
  maxVal = min(maxVal, 9);
  printf("%d %d\n", minVal, maxVal);
  return 0;
}
