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

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

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

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