#include <bits/stdc++.h>
int main(void) {
  int i, min = 0, max = 0, n, a, c, col[8] = {};
  scanf("%d", &n);
  for (i = 0; i < n; i++) {
    scanf("%d", &a);
    c = 0;
    while (1) {
      if ((a - 400) >= 0 && c != 7) {
        a = a - 400;
        c++;
      } else {
        col[c]++;
        break;
      }
    }
  }
  for (i = 0; i < 7; i++) {
    if (col[i] != 0) {
      min++;
      max++;
    }
  }
  if (min < col[7]) {
    min = col[7];
  }
  max = max + col[7];
  if (max >= 8) {
    max = 8;
  }
  printf("%d %d", min, max);
}
