#include <bits/stdc++.h>
int main(void) {
  int n, a, i, count[9] = {0}, over = 0, sum = 0;
  int sum2;
  scanf("%d", &n);
  for (i = 0; i < n; i++) {
    scanf("%d", &a);
    if (a >= 1 && a <= 399)
      count[0]++;
    else if (a >= 400 && a <= 799)
      count[1]++;
    else if (a >= 800 && a <= 1199)
      count[2]++;
    else if (a >= 1200 && a <= 1599)
      count[3]++;
    else if (a >= 1600 && a <= 1999)
      count[4]++;
    else if (a >= 2000 && a <= 2399)
      count[5]++;
    else if (a >= 2400 && a <= 2799)
      count[6]++;
    else if (a >= 2800 && a <= 3199)
      count[7]++;
    else if (a >= 3200)
      over++;
  }
  for (i = 0; i < 8; i++) {
    if (count[i] >= 1) sum++;
  }
  if (sum + over <= 8)
    sum2 = sum + over;
  else
    sum2 = 8;
  if (sum == 0) sum = 1;
  printf("%d %d\n", sum, sum2);
  return 0;
}
