#include <cstdio>
#include <algorithm>
#include <vector>
#include <map>

int main() {
  size_t N;
  scanf("%zu", &N);

  std::map<int, int> a;
  a[8] = 0;
  for (size_t i=0; i<N; ++i) {
    int tmp;
    scanf("%d", &tmp);
    ++a[std::min(8, tmp/400)];
  }

  size_t min=std::max<size_t>(1, a.size()-1);
  size_t max=a.size()-1+a[8];
  printf("%zu %zu\n", min, max);
}
