#include <bits/stdc++.h>
int main(void) {
  int i, n, a[101] = {0}, r[10] = {0}, cnt = 0, cnt8 = 0, max = 0, min = 0;
  scanf("%d", &n);
  for (i = 0; i < n; i++) {
    scanf(" %d", &a[i]);
  }
  for (i = 0; i < n; i++) {
    if (a[i] <= 399) {
      r[0] = 1;
    } else if (a[i] <= 799) {
      r[1] = 1;
    } else if (a[i] <= 1199) {
      r[2] = 1;
    } else if (a[i] <= 1599) {
      r[3] = 1;
    } else if (a[i] <= 1999) {
      r[4] = 1;
    } else if (a[i] <= 2399) {
      r[5] = 1;
    } else if (a[i] <= 2799) {
      r[6] = 1;
    } else if (a[i] <= 3199) {
      r[7] = 1;
    } else if (a[i] >= 3200) {
      r[8] = 1;
      cnt8++;
    }
  }
  for (i = 0; i < 8; i++) {
    if (r[i] == 1) cnt++;
  }
  min = cnt;
  if (r[8] == 1) {
    max = cnt + cnt8;
  } else {
    max = cnt;
  }
  if (min == 0) min = 1;
  if (max >= 8) max = 8;
  if (n <= 1) {
    min = 1;
    max = 1;
  }
  printf("%d %d\n", min, max);
  return 0;
}
