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