#include <bits/stdc++.h>
int main() {
  int N, a, i, c = 0, m = 0;
  int r[8] = {0};
  scanf("%d", &N);
  for (i = 0; i < N; i++) {
    scanf("%d", &a);
    if (a < 3200)
      r[a / 400] = true;
    else
      c++;
  }
  for (i = 0; i < 8; i++)
    if (r[i]) m++;
  if (m == 0)
    printf("1 %d\n", c);
  else
    printf("%d %d\n", m, c);
}
