#include <bits/stdc++.h>
void grouping(long *table, long rating) {
  if (rating >= 1 && rating <= 399) {
    table[0]++;
  } else if (rating >= 400 && rating <= 799) {
    table[1]++;
  } else if (rating >= 800 && rating <= 1199) {
    table[2]++;
  } else if (rating >= 1200 && rating <= 1599) {
    table[3]++;
  } else if (rating >= 1600 && rating <= 1999) {
    table[4]++;
  } else if (rating >= 2000 && rating <= 2399) {
    table[5]++;
  } else if (rating >= 2400 && rating <= 2799) {
    table[6]++;
  } else if (rating >= 2800 && rating <= 3199) {
    table[7]++;
  } else if (rating >= 3200) {
    table[8]++;
  }
}
int main() {
  long N;
  long a[100];
  long table[9] = {};
  std::cin >> N;
  for (long i = 0; i < N; i++) {
    std::cin >> a[i];
    grouping(table, a[i]);
  }
  long color = 0;
  for (long i = 0; i < 8; i++) {
    if (table[i] > 0) {
      color++;
    }
  }
  std::cout << color << " " << color + table[8] << std::endl;
  return 0;
}
