#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  vector<int> cflag(8);
  int overrate = 0;
  for (int i = 0; i < n; i++) {
    int rate;
    cin >> rate;
    if (rate < 3200) {
      cflag.at(rate / 400) = 1;
    } else {
      overrate++;
    }
  }
  int sum = accumulate(cflag.begin(), cflag.end(), 0);
  cout << max(1, sum) << " " << min(8, sum + overrate) << endl;
}
