#include <bits/stdc++.h>
int main(void) {
  int n, a[101], i, b[10] = {0, 0, 0, 0, 0, 0, 0, 0, 0}, c = 0;
  scanf("%d", &n);
  for (i = 0; i < n; i++) {
    scanf("%d", &a[i]);
    if (a[i] <= 399) b[0] = b[0] + 1;
    if (a[i] >= 400 && a[i] <= 799) b[1] = b[1] + 1;
    if (a[i] >= 800 && a[i] <= 1199) b[2] = b[2] + 1;
    if (a[i] >= 1200 && a[i] <= 1599) b[3] = b[3] + 1;
    if (a[i] >= 1600 && a[i] <= 1999) b[4] = b[4] + 1;
    if (a[i] >= 2000 && a[i] <= 2399) b[5] = b[5] + 1;
    if (a[i] >= 2400 && a[i] <= 2799) b[6] = b[6] + 1;
    if (a[i] >= 2800 && a[i] <= 3199) b[7] = b[7] + 1;
    if (a[i] >= 3200) b[8] = b[8] + 1;
  }
  if (b[0] != 0) c = c + 1;
  if (b[1] != 0) c = c + 1;
  if (b[2] != 0) c = c + 1;
  if (b[3] != 0) c = c + 1;
  if (b[4] != 0) c = c + 1;
  if (b[5] != 0) c = c + 1;
  if (b[6] != 0) c = c + 1;
  if (b[7] != 0) c = c + 1;
  printf("%d %d\n", c, c + b[8]);
  return 0;
}
