#include <bits/stdc++.h>
int main(void) {
  int N;
  std::cin >> N;
  std::vector<bool> color_used = std::vector<bool>(8, false);
  int free_color_members = N;
  for (size_t i = 0; i < N; ++i) {
    int rate;
    std::cin >> rate;
    if (rate < 3200) {
      color_used[rate / 400] = true;
      free_color_members -= 1;
    }
  }
  int used_colors = 0;
  for (size_t i = 0; i < 8; ++i) {
    if (color_used[i] > 0) {
      used_colors += 1;
    }
  }
  if (used_colors == 0) {
    free_color_members -= 1;
    used_colors = 1;
  }
  std::cout << used_colors << " " << free_color_members << std::endl;
  return 0;
}
