#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  int A[n];
  int colors[9] = {0, 0, 0, 0, 0, 0, 0, 0, 0};
  for (int i = 0; i < n; i++) {
    cin >> A[i];
    if (A[i] < 3200) {
      colors[A[i] / 400]++;
    } else {
      colors[8]++;
    }
  }
  int ansmin = 0;
  for (int i = 0; i < 8; i++) {
    if (colors[i] > 0) ansmin++;
  }
  if (ansmin == 0) ansmin = 1;
  int ansmax = ansmin + colors[8];
  cout << ansmin << " " << ansmax << "\n";
  return 0;
}
