#include <bits/stdc++.h>
int main() {
  int N;
  int i = 0;
  int k;
  int sun_min = 0;
  int sun_max = 0;
  uint8_t color_table[9] = {0, 0, 0, 0, 0, 0, 0, 0, 0};
  std::cin >> N;
  if ((0 > N) || (N > 100)) {
    std::cout << "Invalid N value!" << std::endl;
    return 1;
  }
  while (i < N) {
    std::cin >> k;
    if ((1 <= k) && (k <= 399)) {
      color_table[0] = 1;
    } else if ((400 <= k) && (k <= 799)) {
      color_table[1] = 1;
    } else if ((800 <= k) && (k <= 1199)) {
      color_table[2] = 1;
    } else if ((1200 <= k) && (k <= 1599)) {
      color_table[3] = 1;
    } else if ((1600 <= k) && (k <= 1999)) {
      color_table[4] = 1;
    } else if ((2000 <= k) && (k <= 2399)) {
      color_table[5] = 1;
    } else if ((2400 <= k) && (k <= 2799)) {
      color_table[6] = 1;
    } else if ((2800 <= k) && (k <= 3199)) {
      color_table[7] = 1;
    } else if ((3200 <= k)) {
      color_table[8]++;
    } else {
      std::cout << "invalid a_i value!" << std::endl;
      return 1;
    }
    i++;
  }
  for (int l = 0; l < 8; l++) {
    sun_min += color_table[l];
  }
  sun_max = sun_min + color_table[8];
  if (sun_max == 0) {
    sun_max = 1;
  }
  std::cout << sun_min << ' ' << sun_max << std::endl;
  return 0;
}
