#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  int arr[n], c[9] = {0};
  for (int i = 0; i < n; i++) {
    cin >> arr[i];
  }
  for (int i = 0; i < n; i++) {
    int x = (arr[i] / 400);
    c[x]++;
  }
  int minm = 0, maxm = 0;
  for (int i = 0; i < 8; i++) {
    if (c[i] != 0) {
      minm++;
    }
  }
  maxm = minm + c[8];
  if (maxm > 8) maxm = 8;
  cout << minm << " " << maxm;
  return 0;
}
