#include <bits/stdc++.h>
static int MAX = 5000;
class abc64c {
 private:
  int color[10];
  int min;
  int max;

 public:
  abc64c();
  void distribution(int Rate);
  void minmax();
};
abc64c::abc64c() {
  for (int i = 0; i < 10; ++i) color[i] = 0;
  min = 0;
  max = 0;
}
void abc64c::distribution(int Rate) {
  for (int j = 0; j < 8; ++j) {
    if (0 < Rate && Rate <= 4800) {
      if ((400 * j) <= Rate && Rate < (400 * (j + 1))) ++color[j];
    }
  }
  if (Rate >= 3200) ++color[8];
}
void abc64c::minmax() {
  for (int k = 0; k < 8; ++k) {
    if (color[k] > 0) {
      ++min;
      ++max;
    }
  }
  max += color[8];
  if (min == 0) min = max;
  std::cout << min << ' ' << max << '\n';
}
int main() {
  class abc64c conbination;
  int N;
  int rate[MAX];
  std::cin >> N;
  for (int i = 0; i < N; ++i) {
    std::cin >> rate[i];
    conbination.distribution(rate[i]);
  }
  conbination.minmax();
  return (0);
}
