#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  vector<int> rates(9, 0);
  for (long long i = 0; i < n; i++) {
    int tmp;
    cin >> tmp;
    tmp = min(tmp, 3200);
    rates[tmp / 400]++;
  }
  int less3200 = 0;
  for (long long i = 0; i < 8; i++) {
    if (rates[i] > 0) less3200++;
  }
  if (less3200 == 0) less3200 = 1;
  cout << less3200 << " " << less3200 + rates[8] << endl;
  return 0;
}
