#include <bits/stdc++.h>
int main(int argc, char *argv[]) {
  int n, a[120], i, m = 0, s, x, j = 0, b = 0, c = 0, d = 0, e = 0, f = 0,
                    g = 0, h = 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 = 1;
    if (a[i] >= 400 && a[i] <= 799) b = 1;
    if (a[i] >= 800 && a[i] <= 1199) c = 1;
    if (a[i] >= 1200 && a[i] <= 1599) d = 1;
    if (a[i] >= 1600 && a[i] <= 1999) e = 1;
    if (a[i] >= 2000 && a[i] <= 2399) f = 1;
    if (a[i] >= 2400 && a[i] <= 2799) g = 1;
    if (a[i] >= 2800 && a[i] <= 3199) h = 1;
    if (a[i] >= 3200) m++;
  }
  if (j == 0 && b == 0 && c == 0 && d == 0 & e == 0 && f == 0 && g == 0 &&
      h == 0) {
    s = m;
    x = s;
  } else {
    s = j + b + c + d + e + f + g + h;
    x = s + m;
  }
  printf("%d %d", s, x);
}
