#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  vector<int> a(n);
  set<int> s;
  int cnt_over_3200 = 0;
  for (int i = 0; i < (int)(n); i++) {
    cin >> a.at(i);
    if (a.at(i) >= 3200) {
      cnt_over_3200++;
    }
    a.at(i) /= 400;
    if (a.at(i) < 8) {
      s.insert(a.at(i));
    }
  }
  int ans_min = s.size();
  int ans_max = min(8, ans_min + cnt_over_3200);
  if ((ans_min == 0) & (cnt_over_3200 >= 1)) {
    ans_min = 1;
    ans_max = min(8, cnt_over_3200);
  }
  cout << ans_min << " " << ans_max << endl;
}
