#include <bits/stdc++.h>
int main(void) {
  int N, a[100];
  int i, j = 0, k = 0, l = 0, m = 0, n = 0, o = 0, p = 0, q = 0, r = 0, s = 0;
  scanf("%d", &N);
  for (i = 0; i < N; i++) scanf("%d", &a[i]);
  for (i = 0; i < N; i++) {
    if ((a[i] >= 1) && (a[i] <= 399)) j++;
    if ((a[i] >= 400) && (a[i] <= 799)) k++;
    if ((a[i] >= 800) && (a[i] <= 1199)) l++;
    if ((a[i] >= 1200) && (a[i] <= 1599)) m++;
    if ((a[i] >= 1600) && (a[i] <= 1999)) n++;
    if ((a[i] >= 2000) && (a[i] <= 2399)) o++;
    if ((a[i] >= 2400) && (a[i] <= 2799)) p++;
    if ((a[i] >= 2800) && (a[i] <= 3199)) q++;
    if (a[i] >= 3200) r++;
  }
  if (j > 0) s++;
  if (k > 0) s++;
  if (l > 0) s++;
  if (m > 0) s++;
  if (n > 0) s++;
  if (o > 0) s++;
  if (p > 0) s++;
  if (q > 0) s++;
  printf("%d %d\n", s, s + r);
  return 0;
}
