#include <bits/stdc++.h>
using namespace std;
int main(void) {
  long long n, a;
  cin >> n;
  vector<long long> v;
  for (long long i = (0); i < (n); i++) {
    cin >> a;
    if (a < 3200)
      v.at(a / 400) = 1;
    else
      v.at(8)++;
  }
  for (long long i = (1); i < (8); i++) v.at(0) += v.at(i);
  cout << max(v.at(0), (long long)1) << ' ' << (v.at(0) + v.at(8)) << endl;
}
