#include <bits/stdc++.h>
int main() {
  int N;
  int i[100];
  std::cin >> N;
  for (int count = 0; count < N; count++) {
    std::cin >> i[count];
  }
  bool colorfrag[8] = {false, false, false, false, false, false, false, false};
  int freecolor = 0;
  for (int count = 0; count < N; count++) {
    if (i[count] < 3200) {
      colorfrag[i[count] / 400] = true;
    } else {
      freecolor++;
    }
  }
  int colortype = 0;
  for (int count = 0; count < 8; count++) {
    if (colorfrag[count]) {
      colortype++;
    }
  }
  std::cout << ((colortype > freecolor) ? colortype : freecolor) << " "
            << colortype + freecolor << std::endl;
  return 0;
}
