#include <bits/stdc++.h>
using namespace std;
void func(long long N, std::vector<long long> a) {
  long long int d[8] = {399, 799, 1199, 1599, 1999, 2399, 2799, 3199};
  set<long long int> cnt;
  long long int free = 0;
  for (int i = 0; i < N; i++) {
    bool ok = false;
    for (int j = 0; j < 8; j++) {
      if (a[i] <= d[j]) {
        cnt.insert(j);
        ok = true;
        break;
      }
    }
    if (!ok) free++;
  }
  cout << cnt.size() << " " << free + cnt.size() << 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;
}
