#include <bits/stdc++.h>
using namespace std;
int main() {
  int N;
  int a[4810];
  cin >> N;
  for (int i = 0; i < N; i++) {
    cin >> a[i];
  }
  int rate[9];
  for (int i = 0; i < 9; i++) {
    rate[i] = 0;
  }
  for (int i = 0; i < N; i++) {
    ++rate[a[i] / 400];
  }
  int min = 0;
  int max = 0;
  int rates = 0;
  for (int i = 0; i < 9; i++) {
    if (rate[i]) ++rates;
  }
  int morethan3200 = rate[8];
  if (morethan3200 == 0) {
    min = max = rates;
  } else if (rates == 1) {
    min = 1;
    max = morethan3200;
  } else {
    min = rates - 1;
    max = min + morethan3200;
  }
  cout << min << " " << max << endl;
  return 0;
}
