#include <bits/stdc++.h>
int main() {
  int n, i, num;
  scanf("%d", &n);
  int a[14];
  for (i = 0; i < 14; i++) a[i] = 0;
  for (i = 0; i < n; i++) {
    scanf("%d", &num);
    a[num / 400]++;
  }
  int min = 0, max;
  for (i = 0; i < 8; i++) {
    if (a[i] != 0) min++;
  }
  max = min;
  for (i = 8; i < 14; i++) max += a[i];
  printf("%d %d\n", min == 0 ? 1 : min, max > 8 ? 8 : max);
  return 0;
}
