#include <bits/stdc++.h>
using namespace std;
const int N = (int)1e5 + 7;
const int inf = (int)1e9 + 7;
const int MAX = (int)1e2 + 7;
int a[N];
int q[N];
int main() {
  int n;
  scanf("%d", &n);
  for (int i = 1; i <= n; i++) {
    scanf("%d", a + i);
    if (a[i] < 400) {
      q[1]++;
    } else if (a[i] < 800) {
      q[2]++;
    } else if (a[i] < 1200) {
      q[3]++;
    } else if (a[i] < 1600) {
      q[4]++;
    } else if (a[i] < 2000) {
      q[5]++;
    } else if (a[i] < 2400) {
      q[6]++;
    } else if (a[i] < 2800) {
      q[7]++;
    } else if (a[i] < 3200) {
      q[8]++;
    } else {
      q[9]++;
    }
  }
  int mn = 0, mx = 0;
  for (int i = 1; i <= 8; i++) {
    if (q[i] > 0) {
      mn++;
    }
  }
  if (mn == 0) {
    mn = q[9];
    mx = q[9];
  } else {
    mx = mn + q[9];
  }
  printf("%d %d", mn, mx);
}
