#include <bits/stdc++.h>
int main() {
  int n, a[100];
  int rate_exist;
  int min_col = 0, max_col = 0;
  int free_col_num = 0;
  int i, rate;
  scanf("%d", &n);
  for (i = 0; i < n; i++) {
    scanf("%d", &a[i]);
  }
  for (rate = 0; rate < 3200; rate += 400) {
    printf("rate:%d\n", rate);
    for (i = 0; i < n; i++) {
      if (rate <= a[i] && a[i] <= rate + 399) {
        rate_exist = 1;
        break;
      } else {
        rate_exist = 0;
      }
    }
    min_col += rate_exist;
    max_col += rate_exist;
  }
  for (i = 0; i < n; i++) {
    if (a[i] >= 3200) free_col_num++;
  }
  if (min_col == 0 && free_col_num > 0) {
    min_col = 1;
  }
  while (free_col_num > 0) {
    free_col_num--;
    max_col++;
  }
  printf("%d %d", min_col, max_col);
}
