#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  int a[n];
  bool color[8];
  for (int i = 0; n > i; i++) {
    cin >> a[i];
    a[i] /= 400;
  }
  int nini = 0;
  for (int i = 0; n > i; i++) {
    if (a[i] <= 7) {
      color[a[i]] = true;
    } else
      nini++;
  }
  int kekka = 0;
  for (int i = 0; 8 > i; i++) {
    if (color[i]) kekka++;
  }
  cout << kekka << " " << (kekka + nini > 8 ? 8 : kekka + nini) << endl;
}
