#include <bits/stdc++.h>
int a[109];
int main() {
  int n;
  scanf("%d", &n);
  int s1 = 0, s2 = 0, s3 = 0, s4 = 0, s5 = 0, s6 = 0, s7 = 0, s8 = 0, s9 = 0;
  for (int i = 0; i < n; i++) {
    scanf("%d", &a[i]);
    if (a[i] >= 1 && a[i] < 400) {
      s1 = 1;
    } else if (a[i] >= 400 && a[i] < 800) {
      s2 = 1;
    } else if (a[i] >= 800 && a[i] < 1200) {
      s3 = 1;
    } else if (a[i] >= 1200 && a[i] < 1600) {
      s4 = 1;
    } else if (a[i] >= 1600 && a[i] < 2000) {
      s5 = 1;
    } else if (a[i] >= 2000 && a[i] < 2400) {
      s6 = 1;
    } else if (a[i] >= 2400 && a[i] < 2800) {
      s7 = 1;
    } else if (a[i] >= 2800 && a[i] < 3200) {
      s8 = 1;
    } else if (a[i] >= 3200) {
      s9++;
    }
  }
  int max = 0;
  int min = 0;
  int t = s1 + s2 + s3 + s4 + s5 + s6 + s7 + s8;
  if (t == 0 && s9 > 0) {
    min = 1;
  } else
    min = t;
  if ((t + s9) >= 8) {
    max = 8;
  } else
    max = t + s9;
  printf("%d %d\n", min, max);
}
