#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] <= 399)
      j++;
    else if (a[i] <= 799)
      k++;
    else if (a[i] <= 1199)
      l++;
    else if (a[i] <= 1599)
      m++;
    else if (a[i] <= 1999)
      n++;
    else if (a[i] <= 2399)
      o++;
    else if (a[i] <= 2799)
      p++;
    else if (a[i] <= 3199)
      q++;
    else
      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;
}
