#include <bits/stdc++.h>
int main() {
  bool a[8] = {};
  int buf, sum = 0;
  int n, top = 0;
  int max = 0, min = 0;
  scanf("%d", &n);
  int i;
  for (i = 0; i < n; i++) {
    scanf("%d", &buf);
    if (buf < 3200)
      a[buf / 400]++;
    else
      top++;
  }
  for (i = 0; i < 8; i++) {
    if (a[i] == 1) sum++;
  }
  if (sum + top > 8)
    max = 8;
  else
    max = sum + top;
  if (sum == 0)
    min = 1;
  else
    min = sum;
  printf("%d %d\n", min, max);
  return 0;
}
