#include <bits/stdc++.h>
int main(void) {
  int rt[200], coll[8];
  int n, i, wild, r, min, max;
  scanf("%d", &n);
  for (i = 0; i < n; i++) {
    scanf("%d", &rt[i]);
  }
  wild = 0;
  for (i = 0; i < 8; i++) {
    coll[i] = 0;
  }
  for (i = 0; i < n; i++) {
    r = rt[i];
    if (1 <= r && r <= 399) {
      coll[0]++;
    }
    if (400 <= r && r <= 799) {
      coll[1]++;
    }
    if (800 <= r && r <= 1199) {
      coll[2]++;
    }
    if (1200 <= r && r <= 1599) {
      coll[3]++;
    }
    if (1600 <= r && r <= 1999) {
      coll[4]++;
    }
    if (2000 <= r && r <= 2399) {
      coll[5]++;
    }
    if (2400 <= r && r <= 2799) {
      coll[6]++;
    }
    if (2800 <= r && r <= 3199) {
      coll[7]++;
    }
    if (3199 < r) {
      wild++;
    }
  }
  min = 0;
  for (i = 0; i < 8; i++) {
    if (coll[i] != 0) {
      min++;
    }
  }
  max = min + wild;
  if (max > 8) {
    max = 8;
  }
  if (min == 0 && wild != 0) {
    min = 1;
  }
  printf("%d %d\n", min, max);
  return 0;
}
