#include <bits/stdc++.h>
int main(void) {
  int n;
  int a[100];
  int i, j;
  int color[] = {400, 800, 1200, 1600, 2000, 2400, 2800, 3200};
  int cnt[9] = {0};
  int max = 0, min = 0;
  scanf("%d", &n);
  for (i = 0; i < n; i++) {
    scanf("%d", &a[i]);
    if (1 <= a[i] && a[i] <= 399) cnt[0]++;
    for (j = 1; j < 8; j++) {
      if (color[j] - 400 <= a[i] && a[i] < color[j]) cnt[j]++;
    }
    if (3200 <= a[i] && a[i] <= 4800) cnt[8]++;
  }
  for (i = 0; i < 8; i++)
    if (cnt[i] > 0) min++;
  max = min + cnt[8];
  printf("%d %d\n", min, max);
  return 0;
}
