#include <bits/stdc++.h>
using namespace std;
double EPS = 1e-10;
int main() {
  int N;
  cin >> N;
  ;
  vector<int> a(N);
  vector<int> rateNumber(8);
  for (int i = 0; i < (8); i++) {
    rateNumber[i] = 0;
  }
  int over3200 = 0;
  for (int i = 0; i < (N); i++) {
    cin >> a[i];
    if (a[i] < 3200)
      rateNumber[a[i] / 400]++;
    else
      over3200++;
  }
  int existMemberRate = 0;
  for (int i = 0; i < (8); i++) {
    if (rateNumber[i] > 0) existMemberRate++;
  }
  if (existMemberRate == 8)
    cout << 8 << ' ' << 8 << endl;
  else if (existMemberRate < 8 && (8 - existMemberRate) > over3200)
    cout << existMemberRate << ' ' << (existMemberRate + over3200) << endl;
  else if (existMemberRate < 8 && (8 - existMemberRate) <= over3200)
    cout << existMemberRate << ' ' << 8 << endl;
  else if (existMemberRate == 0) {
    cout << 1 << ' ';
    if (over3200 < 8)
      cout << over3200 << endl;
    else
      cout << 8 << endl;
  }
  return 0;
}
