#include <bits/stdc++.h>
using namespace std;
int main(void) {
  int n;
  int cn[200] = {0};
  int fc = 0;
  cin >> n;
  for (int i = 0; i < n; i++) {
    int a;
    cin >> a;
    if (a >= 3200)
      fc++;
    else
      cn[a / 400] = 1;
  }
  int mi = 0;
  for (int i = 0; i < 8; i++) mi += cn[i];
  cout << mi << " " << mi + fc << endl;
  return 0;
}
