#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  int nmax = 0, nmin = 0;
  bool flags[8];
  for (int i = 0; i < 8; i++) {
    flags[i] = false;
  }
  int experts = 0;
  for (int i = 0; i < n; i++) {
    int a;
    cin >> a;
    if (a >= 3200) {
      experts++;
    } else {
      flags[a / 400] = true;
    }
  }
  for (int i = 0; i < 8; i++) {
    if (flags[i]) {
      nmax++;
      nmin++;
    }
  }
  nmax += experts;
  if (nmax > 8) {
    nmax = 8;
  }
  if (nmin == 0 && experts > 0) {
    nmin = 1;
  }
  cout << nmin << " " << nmax << endl;
  return 0;
}
