#include <bits/stdc++.h>
using namespace std;
const long long N = 400010;
inline long long read() {
  long long s = 0, w = 1;
  register char ch = getchar();
  while (ch < '0' || ch > '9') {
    if (ch == '-') w = -1;
    ch = getchar();
  }
  while (ch >= '0' && ch <= '9')
    s = (s << 3) + (s << 1) + (ch ^ 48), ch = getchar();
  return s * w;
}
long long n, a[N], book[N], mi, mx;
signed main() {
  n = read();
  for (register long long i = 1; i <= n; i++) a[i] = read();
  for (register long long i = 1; i <= n; i++) book[a[i] / 400]++;
  for (register long long i = 0; i <= 7; i++) {
    if (book[i]) mi++, mx++;
  }
  if (!book[8]) {
    printf("%lld %lld\n", mi, mx);
    return 0;
  }
  if (!mi)
    printf("1 ");
  else
    printf("%lld ", mi);
  printf("%lld\n", mi + min(book[8], 8 - mi));
  return 0;
}
