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