#include <bits/stdc++.h>
int main(void) {
  int n, a[10000], i, max, min, b = 0, c = 0, d = 0, e = 0, f = 0, g = 0, h = 0,
                                j = 0, z = 0;
  scanf("%d", &n);
  for (i = 0; i < n; i++) {
    scanf("%d", &a[i]);
    if (a[i] <= 399)
      b = 1;
    else if (a[i] <= 799)
      c = 1;
    else if (a[i] <= 1199)
      d = 1;
    else if (a[i] <= 1599)
      e = 1;
    else if (a[i] <= 1999)
      f = 1;
    else if (a[i] <= 2399)
      g = 1;
    else if (a[i] <= 2799)
      h = 1;
    else if (a[i] <= 3199)
      j = 1;
    else if (a[i] >= 3200)
      z++;
  }
  max = b + c + d + e + f + g + h + j + z;
  if (max >= 8) max = 8;
  min = b + c + d + e + f + g + h + j;
  printf("%d %d\n", min, max);
  return 0;
}
