#include <bits/stdc++.h>
int main() {
  const int llimit[9] = {400, 800, 1200, 1600, 2000, 2400, 2800, 3200, 4801};
  int count[9];
  for (int i = 0; i < 9; ++i) count[i] = 0;
  int N;
  std::cin >> N;
  int a;
  for (int i = 0; i < N; ++i) {
    std::cin >> a;
    for (int j = 0; j < 9; ++j) {
      if (a < llimit[j]) {
        count[j]++;
        break;
      }
    }
  }
  int min = 0;
  for (int i = 0; i < 8; ++i) {
    if (count[i] > 0) ++min;
  }
  int max = std::min(8, min + count[8]);
  min = std::max(1, min);
  std::cout << min << ' ' << max << std::endl;
  return 0;
}
