#include <bits/stdc++.h>
int main() {
  int N, a[100];
  scanf("%d", &N);
  for (int i = 0; i < N; i++) {
    int temp;
    scanf("%d", &temp);
    a[i] = -1;
    for (int j = 0; j < 8; j++) {
      if (temp < 400 * (j + 1)) {
        a[i] = j;
        break;
      }
    }
  }
  int super = 0;
  int list[8];
  for (int i = 0; i < 8; i++) list[i] = 0;
  for (int i = 0; i < N; i++) {
    if (a[i] == -1) {
      super++;
      continue;
    } else {
      list[a[i]] = 1;
    }
  }
  int colormin = 0, colormax;
  for (int i = 0; i < 8; i++) colormin += list[i];
  colormax = colormin + super;
  if (colormin == 0) colormin = 1;
  if (colormax > 8) colormax = 8;
  printf("%d %d\n", colormin, colormax);
  return 0;
}
