#include <bits/stdc++.h>
using namespace std;
long long int N, c[9], a, b;
int main() {
  scanf("%lld", &N);
  for (int i = 0; i < N; ++i) {
    scanf("%lld", c);
    if (*c < 3200) {
      if (++c[*c / 400 + 1] == 1) ++a;
    } else
      ++b;
  }
  a = max(a, 1LL);
  cout << a << " " << a + b << endl;
  return 0;
}
