#include <bits/stdc++.h>
int main(void) {
  int i, N, a[100], min = 0, max = 0;
  int ratecolor[9] = {}, count;
  scanf("%d", &N);
  for (i = 0; i < N; i++) {
    scanf("%d", &a[i]);
    if (a[i] < 400) {
      ratecolor[0]++;
    } else if (400 <= a[i] && a[i] < 800) {
      ratecolor[1]++;
    } else if (800 <= a[i] && a[i] < 1200) {
      ratecolor[2]++;
    } else if (1200 <= a[i] && a[i] < 1600) {
      ratecolor[3]++;
    } else if (1600 <= a[i] && a[i] < 2000) {
      ratecolor[4]++;
    } else if (2000 <= a[i] && a[i] < 2400) {
      ratecolor[5]++;
    } else if (2400 <= a[i] && a[i] < 2800) {
      ratecolor[6]++;
    } else if (2800 <= a[i] && a[i] < 3200) {
      ratecolor[7]++;
    } else if (3200 <= a[i]) {
      ratecolor[8]++;
    }
  }
  for (i = 0; i < 8; i++) {
    if (ratecolor[i] > 0) {
      min++;
      max++;
    }
  }
  if (ratecolor[8] != 0) {
    max = max + ratecolor[8];
  }
  printf("%d %d\n", min, max);
  return 0;
}
