#include <bits/stdc++.h>
int main(void) {
  int n, a[102], i, j, col = 0, t = 0, max, min;
  scanf("%d", &n);
  for (i = 0; i < n; i++) {
    scanf("%d", &a[i]);
    if (a[i] >= 3200) t++;
  }
  for (i = 0; i < 8; i++) {
    for (j = 0; j < n; j++) {
      if (400 * i <= a[j] && a[j] < 400 * (i + 1)) {
        col++;
        break;
      }
    }
  }
  if (col < 8 && t <= 8 - col)
    max = col + t;
  else
    max = 8;
  if (t <= col)
    min = col;
  else
    min = t;
  printf("%d %d\n", min, max);
  return 0;
}
