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