#include <bits/stdc++.h>
int main(void) {
  int N, a;
  int color[9] = {0}, cnt = 0, max, min;
  scanf("%d", &N);
  for (int i = 0; i < N; i++) {
    scanf("%d", &a);
    for (int j = 1; j <= 8; j++) {
      if (a <= 400 * j - 1) {
        if (color[j - 1] == 0) {
          cnt++;
          color[j - 1]++;
        }
        break;
      }
      if (a >= 3200) {
        color[8]++;
        break;
      }
    }
  }
  min = cnt;
  if (color[8] != 0) {
    if (cnt + color[8] <= 8)
      max = cnt + color[8];
    else if (cnt + color[8] > 8)
      max = 8;
  } else {
    max = cnt;
  }
  printf("%d %d\n", min, max);
  return 0;
}
