#include <bits/stdc++.h>
using namespace std;
const int maxn = 100100;
int n, cnt, ans;
int a[maxn], col[maxn];
long long read() {
  long long s = 0, f = 1;
  char ch = getchar();
  while (ch < '0' || ch > '9') {
    if (ch == '-') f = -1;
    ch = getchar();
  }
  while (ch >= '0' && ch <= '9') {
    s = s * 10 + ch - '0';
    ch = getchar();
  }
  return s * f;
}
int main() {
  cnt = 0, ans = 0;
  n = read();
  for (int i = 1; i <= n; i++) {
    a[i] = read();
    col[a[i] / 400]++;
  }
  for (int i = 0; i <= 7; i++) {
    if (col[i]) cnt++;
  }
  if (cnt != 0) {
    printf("%d %d\n", cnt, cnt + col[8]);
  } else {
    printf("%d %d\n", 1, col[8]);
  }
  return 0;
}
