#include <bits/stdc++.h>
using namespace std;
template <class T>
bool chmax(T& a, const T& b) {
  if (a < b) {
    a = b;
    return 1;
  }
  return 0;
}
template <class T>
bool chmin(T& a, const T& b) {
  if (b < a) {
    a = b;
    return 1;
  }
  return 0;
}
long long int d[9];
void func(long long N, std::vector<long long> a) {
  long long int dd[9] = {400,  800,  1200, 1600,       2000,
                         2400, 2800, 3200, (1LL << 50)};
  for (int i = 0; i < N; i++) {
    for (int j = 0; j < 9; j++) {
      if (a[i] < dd[j]) {
        d[j]++;
        break;
      }
    }
  }
  long long int sum = 0;
  for (int i = 0; i < 8; i++)
    if (d[i]) sum++;
  cout << sum << " " << sum + d[8] << endl;
}
int main() {
  long long N;
  scanf("%lld", &N);
  std::vector<long long> a(N);
  for (int i = 0; i < N; i++) {
    scanf("%lld", &a[i]);
  }
  func(N, std::move(a));
  return 0;
}
