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