#include <bits/stdc++.h>
using namespace std;
int main() {
  map<long long, long long> counts;
  long long elsecount = 0;
  long long N;
  cin >> N;
  for (long long i = 0; i < N; i++) {
    long long tmp;
    cin >> tmp;
    if (tmp < 3200)
      counts[tmp / 400]++;
    else
      elsecount++;
  }
  long long count = 0;
  for (auto e : counts) {
    count++;
  }
  if (elsecount == 0) {
    cout << count << ' ' << count << endl;
  } else {
    cout << count << ' ' << count + elsecount << endl;
  }
  return 0;
}
