#include <bits/stdc++.h>
int main() {
  int N;
  std::cin >> N;
  std::vector<int> a(N);
  for (int i = 0; i < N; i++) std::cin >> a.at(i);
  std::sort(a.begin(), a.end());
  int colorMin = 0, colorMax = 0;
  int r = -1;
  for (int i = 0; i < N; i++) {
    if (a.at(i) < 3200) {
      if (a.at(i) / 400 != r) {
        r = a.at(i) / 400;
        colorMin++;
        colorMax++;
      }
    } else
      colorMax++;
  }
  std::cout << colorMin << " " << colorMax << std::endl;
}
