#include <bits/stdc++.h>
using namespace std;
const double pi = acos(-1.0);
int read() {
  int ret = 0;
  char ch = getchar();
  while (ch < '0' || ch > '9') ch = getchar();
  for (; ch >= '0' && ch <= '9'; ch = getchar()) ret = ret * 10 + ch - '0';
  return ret;
}
int ans, cnt1, cnt2, cnt3, cnt4, cnt5, cnt6, cnt7, cnt8, cnt9, n, x;
int main() {
  cnt1 = cnt2 = cnt3 = cnt4 = cnt5 = cnt6 = cnt7 = cnt8 = cnt9 = 0;
  scanf("%d", &n);
  for (int i = 0; i < n; i++) {
    scanf("%d", &x);
    if (x <= 399) {
      cnt1++;
    } else if (x <= 799) {
      cnt2++;
    } else if (x <= 1199) {
      cnt3++;
    } else if (x <= 1599) {
      cnt4++;
    } else if (x <= 1999) {
      cnt5++;
    } else if (x <= 2399) {
      cnt6++;
    } else if (x <= 2799) {
      cnt7++;
    } else if (x <= 3199) {
      cnt8++;
    } else {
      cnt9++;
    }
  }
  int cnt = 0;
  if (cnt1) {
    cnt++;
  }
  if (cnt2) {
    cnt++;
  }
  if (cnt3) {
    cnt++;
  }
  if (cnt4) {
    cnt++;
  }
  if (cnt5) {
    cnt++;
  }
  if (cnt6) {
    cnt++;
  }
  if (cnt7) {
    cnt++;
  }
  if (cnt8) {
    cnt++;
  }
  printf("%d %d\n", cnt, cnt + cnt9);
  return 0;
}
