#include <bits/stdc++.h>
#pragma warning(disable : 4996)
using namespace std;
int main(int argc, char* argv[]) {
  long n;
  scanf("%ld", &n);
  vector<long> a(n);
  long i;
  for (i = 0; i < n; i++) {
    scanf("%ld", &a[i]);
  }
  sort(a.begin(), a.end());
  long x[8] = {400, 800, 1200, 1600, 2000, 2400, 2800, 3200};
  long count[9] = {0};
  long j;
  for (i = 0; i < n; i++) {
    for (j = 0; j < 8; j++) {
      if (a[i] < x[j]) break;
    }
    count[j]++;
  }
  long sum = 0;
  for (i = 0; i < 8; i++) {
    if (count[i] > 0) sum++;
  }
  printf("%ld %ld\n", sum, sum + count[8]);
  return 0;
}
