#include <bits/stdc++.h>
using namespace std;
long long frq[10];
long long fun(long long x) {
  if (x >= 1 && x <= 399)
    frq[1]++;
  else if (x >= 400 && x <= 799)
    frq[2]++;
  else if (x >= 800 && x <= 1199)
    frq[3]++;
  else if (x >= 1200 && x <= 1599)
    frq[4]++;
  else if (x >= 1600 && x <= 1999)
    frq[5]++;
  else if (x >= 2000 && x <= 2399)
    frq[6]++;
  else if (x >= 2400 && x <= 2799)
    frq[7]++;
  else if (x >= 2800 && x <= 3199)
    frq[8]++;
  else if (x >= 3200)
    frq[9]++;
}
int main() {
  long long n, x, a, b;
  scanf("%lld", &n);
  memset(frq, 0, sizeof(frq));
  for (long long i = 1; i <= n; i++) {
    scanf("%lld", &x);
    fun(x);
  }
  long long cnt = 0;
  for (long long i = 1; i <= 8; i++) {
    if (frq[i]) cnt++;
  }
  if (cnt == 0 && frq[9] >= 1) cnt++;
  a = cnt;
  b = cnt + frq[9];
  printf("%lld %lld\n", a, b);
  return (0);
}
