#include <bits/stdc++.h>
int main() {
  int n, c[9] = {0}, i, a, ans = 0, ansmax = 0, ansmin = 0;
  scanf("%d", &n);
  for (i = 0; i < n; i++) {
    scanf("%d", &a);
    if (a < 3200)
      c[a / 400] = 1;
    else
      c[8]++;
  }
  for (i = 0; i < 8; i++) ans += c[i];
  if (ans == 0 && c[8] >= 1)
    ansmin = 1;
  else {
    ansmin = ans;
    ansmax = ans + c[8];
  }
  printf("%d %d\n", ansmin, ansmax);
  return 0;
}
