#include <bits/stdc++.h>
int main() {
  int point[100], colour[9];
  int N;
  int sum1, sum2;
  scanf("%d", &N);
  int i;
  for (i = 0; i < N; i++) {
    scanf("%d", &point[i]);
    colour[(point[i] - point[i] % 400) / 400]++;
    if (colour[(point[i] - point[i] % 400) / 400] == 1 &&
        (point[i] - point[i] % 400) / 400 < 3200)
      sum1++;
    else if ((point[i] - point[i] % 400) / 400 >= 3200)
      sum2++;
  }
  printf("%d ", sum1);
  if (sum2 > sum1)
    printf("%d", sum2 % 8 + 1);
  else
    printf("%d", sum1);
  return 0;
}
