#include <bits/stdc++.h>
int main() {
  int i, N, a[101];
  scanf("%d", &N);
  for (i = 1; i <= N; i++) scanf("%d", &(a[i]));
  int flag[8] = {}, any = 0;
  for (i = 1; i <= N; i++) {
    if (a[i] < 3200)
      flag[a[i] / 400]++;
    else
      any++;
  }
  int min = 0;
  for (i = 0; i < 8; i++)
    if (flag[i] > 0) min++;
  printf("%d %d\n", min, (min + any > 8) ? 8 : min + any);
  fflush(stdout);
  return 0;
}
