#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  int a[n];
  for (int i = 0; i < n; i++) cin >> a[i];
  bool b[8] = {false};
  int sum = 0;
  for (int i = 0; i < n; i++) {
    for (int j = 0; j < 8; j++) {
      if (a[i] >= j * 400 && a[i] < (j + 1) * 400) {
        b[j] = true;
      }
    }
    if (a[i] >= 3200) sum++;
  }
  int summ = 0;
  for (int i = 0; i < 8; i++) {
    if (b[i]) summ++;
  }
  if (summ == 0) {
    summ = sum;
    cout << summ << " " << sum << endl;
  } else {
    cout << summ << " " << summ + sum << endl;
  }
}
