#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  int col[9] = {0};
  int sum = 0;
  for (int i = 0; i < n; i++) {
    int k;
    cin >> k;
    if (k <= 3199) {
      col[k / 400] = 1;
    } else {
      col[8] += 1;
    }
  }
  for (int i = 0; i < 8; i++) {
    sum += col[i];
  }
  if (col[8] == 0) {
    cout << sum << " " << sum << endl;
  } else {
    cout << max(1, sum) << " " << min(8, sum + col[8]) << endl;
  }
}
