#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, color[9] = {}, a;
  cin >> n;
  while (n--) {
    cin >> a;
    color[min(8, a / 400)]++;
  }
  a = 0;
  for (int i = 0; i < 8; ++i) {
    if (color[i] > 0) a++;
  }
  cout << a << " " << min(8, a + color[8]) << endl;
  return 0;
}
