#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  vector<int> arr(n);
  vector<int> color(9, 0);
  for (int i = 0; i < n; i++) {
    cin >> arr[i];
    color[arr[i] / 400]++;
  }
  int va = 0;
  for (int i = 0; i < 8; i++) {
    if (color[i] > 0) {
      va++;
    }
  }
  if (color[8] == 0) {
    cout << va << " " << va << endl;
  } else {
    cout << va << " " << min(va + color[8], 8) << endl;
  }
  return 0;
}
